[conspire] That time again

Rick Moen rick at linuxmafia.com
Mon Oct 8 22:00:13 PDT 2018


My inherently untrustworthy (tsk! tsk!) self-signed SSL cert expired, 
as all things do.  So:

~ $ openssl genrsa -rand /var/mail/rick -out enzo.key 2048
348983322 semi-random bytes loaded
Generating RSA private key, 2048 bit long modulus
.+++
.................................+++
e is 65537 (0x10001)
[rick at linuxmafia]
~ $ openssl req -new -sha256 -key enzo.key -out enzo.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [US]:
State or Province Name (full name) [California]:
Locality Name (eg, city) []:Menlo Park
Organization Name (eg, company) [UNIX Mercenary Consulting]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []:linuxmafia.com
Email Address []:hostmaster at linuxmafia.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
[rick at linuxmafia]
~ $ openssl x509 -req -sha256 -days 730 -in enzo.csr -signkey enzo.key -out enzo.crt
Signature ok
subject=/C=US/ST=California/L=Menlo Park/O=UNIX Mercenary
Consulting/CN=linuxmafia.com/emailAddress=hostmaster at linuxmafia.com
Getting Private key
[rick at linuxmafia]
~ $

Copy the new files over to /etc/ssl/certs/private, after making backup
copies of the expired versions, restart httpd, and we're done until
Wednesday, 7 October 2020 at 9:51:18 pm Pacific Daylight Time.  (And
yeah, I've heard all the arguments about why I should use a robot free
signing service instead.)






More information about the conspire mailing list