Posted on Leave a comment

Docker CentOS 7 container with systemd, perl, mojolicious

This is a docker CentOS 7 container with systemd, perl, mojolicious and much more.

This container has been tested on Windows 10, Linux Mint, CentOS 7 (and soon in CentOS 8) host systems.

The inclusion of systemd in this container makes it powerful and versatile. You can install pretty much any package using yum.

To update the container, all you have to do is just include yum -y update in the Dockerfile.

I am currently working on different flavors of this container for different purposes. Once done, the custom ready-to-go containers will be available for purchase in the shop.

The original container has been pulled or downloaded close to 8000 times from Docker Hub in the last two years. redirects here

Posted on Leave a comment

Nginx on custom ports

NGINX on Custop Ports

This configuration is actual one on server/machine, hop, on my network. And it is live.

How to use custom ports on NGINX?

Add all IPs:

server { 
listen 5085 default_server http2;
listen [::]:5086 default_server http2 ssl;
listen 192.*:5086 http2 ssl;
listen [2600:1700:a*:8*:2*:b*:f*:f*]:5086 http2 ssl;

server {
listen 5087;
listen 192.*:5087;
listen [*]:5087;
listen 192.*:5088 ssl http2;
listen [*]:5088 ssl http2;
listen [::]:5088 http2 ssl;

Did not work until I added all the IPs including local and ip6!

Posted on Leave a comment

how to check fingerprint of a certificate

how to check fingerprint of a certificate?

Needed tools:

Access to a server, desktop, or a docker container via SSH.

Create a file named in Linux and add the following lines to the file.

file="ssl.cert" || $1; 
echo "sha256"; 
openssl x509 -noout -fingerprint -sha256 -inform pem -in $file; 
echo "sha1"; 
openssl x509 -noout -fingerprint -sha1 -inform pem -in $file;
echo "md5"; 
openssl x509 -noout -fingerprint -md5 -inform pem -in $file;

Make the file executable

chmod +x

Run the program/script:


You will see a result similar to the following.

-sh-4.2$ ./ssl/ path/to/certificate.crt


SHA256 Fingerprint=FB:3F:9D:7B:EA:56:84:BE:3D:AB:94:09:BA:85:4C:8A:BA:3A:84:10:A3:50:A2:CF:A7:B5:2F:C2:D4:56:3D:10


SHA1 Fingerprint=23:3B:66:BA:E0:00:7C:2C:91:84:87:37:FB:E6:A3:64:DC:84:81:66


MD5 Fingerprint=A8:17:88:63:39:D0:40:7A:44:B4:87:EA:E8:86:1A:04

That’s it.