certs¶
Gratefully stolen from TLS Mastery. My apologies.
Create a csr and key¶
Assuming there is already a cnf file for this:
#openssl req -newkey rsa:2048 -nodes -keyout gitlab.key -config gitlab.cnf -out gitlab.csr -new -sha256 #creates a new key
openssl req -key KEYFILE.key -config CONFIG.cnf -out REQUEST.csr -new -sha256
Sign the csr¶
openssl ca -batch -config intermediateCA-openssl.cnf -extensions server_cert -notext -in gitlab.csr -out gitlab.crt
format of the index.txt file¶
tab delimited
Certificate status (V = valid, R = revoked, E = expired)
Expiration date in YYMMDDHHMMSSZ format
Cert revocation date
serial number in hex
filename or unknown
Certificate distinguished name