• Home
  • About
  • Cooking with Lucy
It's all just spinning rust
The rants and raves of a thirty-something
  • Pages

    • About
    • Cooking with Lucy
  • Categories

    • Baby (27)
    • Computing (32)
    • Fun stuff (15)
    • Migrated (16)
    • My website (19)
    • Photography (20)
    • Ramblings (165)
    • Useful (3)
  • My other sites

    • Facebook
    • Flickr
    • Twitter
  • Other blogs

    • Kieron Brear
    • My Dad's Website
    • Phil Willoughby
    • Si Maple
    • Xiphi's blog
Oct 16

Creating an OpenSSL Certificate

Computing Add comments

This post is more of a reminder to myself than any public service regarding creating certificates. It’s one of those tasks I need to do once or twice a year, but always forget how to do it. This entry simply reminds me of the commands I need.

Create the private key:

openssl genrsa -out new.pem 2048

Create the certificate signing request file:

openssl req -new -key new.pem -out new.csr

Sign the certificate using your CA:

openssl x509 -CA ca.crt -CAkey ca.key -req -in new.csr -CAserial ca.srl -out new.crt -days 365

And finally export it in PKCS12 format for use elsewhere:

openssl pkcs12 -export -clcerts –inkey new.pem –in new.crt -out new.p12 -name 'My Convenient Name'

Done! That wasn’t too hard to remember was it?

Comments are closed.

Powered by WordPress .::. Designed by SiteGround Web Hosting

cssandhtml