Skip to content

Instantly share code, notes, and snippets.

#Compared a Key with certificate
__The below 2 commands hashed and if it matches then the private key and certificate are matching.__
openssl pkey -in privateKey.key -pubout -outform pem | sha256sum
openssl x509 -in cert.crt -pubkey -noout -outform pem | sha256sum
#Create CSR from existing key file
openssl req -key domain.key -new -out domain.csr
#Generate CSR
To calculate the process config
https://spot13.com/pmcalculator/
To get the size of the php fpm process size
ps -ylC php-fpm5.6 --sort:rss