Creating a New CA (SHA-512, 4096-bit) with PKCS #11 Smart Card Storage and Subordinate CA

Today, I will walk through the process of creating a new Certificate Authority (CA) using a 4096-bit RSA key and SHA-512 as the signature hash algorithm. I will also store the private key securely on a PKCS #11–compatible smart card, and then create a subordinate (sub) CA using the root CA. Throughout this guide, I … Read more

Running PostgreSQL in Docker on my Mac

It’s extremely convenient to run your local tools, like RDMS, development environments and so on on Docker containers on Mac. To be honest with you, I hate installing a bunch of software on my Mac, and that’s the main reason why do I use containers for my local development. Before doing that manual, make sure … Read more

Apache 2.4.6 + mod_wsgi + Python 3.6 + Django 2.2.6 on CentOS 7

There are many how-to’s on installing Apache with mod_wsgi, python 3.x and Django, but nothing worked for me, looks like mod_wsgi libraries installed by default with yum use Python 2.x, and I keep getting the following error message: Installing Apache and devel package So, I had to compile mod_wsgi library from sources, which actually helped … Read more

Nagios environment variables

As soon as Nagios is managed by systemd, you have to change the passing environment variables from /etc/sysconfig/nagios to systemd Edit the file Add Environment=”” or EnvironmentFile=”” to [service] section Restart systemd and nagios Check the process environment That will pass all variables into Nagios daemon Nagios, the Nagios logo, and Nagios graphics are the … Read more

Paperkey: How to backup your GnuPG keys on paper

To create a backup of your GPG Key, you may use one of the following commands paperkey –secret-key my-secret-key.gpg –output to-be-printed.txt Or using this if you have exported (not armored) GPG Key in file: paperkey –secret-key my-secret-key.gpg –output to-be-printed.txt To restore it you will need a paperkey data in file and you public key. The … Read more