Skip to content

Instantly share code, notes, and snippets.

@reflexdemon
Created February 8, 2019 15:20
Show Gist options
  • Save reflexdemon/b81105bce93d2317adf1766a20696b29 to your computer and use it in GitHub Desktop.
Save reflexdemon/b81105bce93d2317adf1766a20696b29 to your computer and use it in GitHub Desktop.
Create Open SSL self signed Certificate Steps

Run the following OpenSSL command to generate your private key and public certificate. Answer the questions and enter the Common Name when prompted.

openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem

Review the created certificate:

openssl x509 -text -noout -in certificate.pem

Combine your key and certificate in a PKCS#12 (P12) bundle:

openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.p12

Validate your P2 file.

openssl pkcs12 -in certificate.p12 -noout -info

Source: https://www.ibm.com/support/knowledgecenter/en/SSWHYP_4.0.0/com.ibm.apimgmt.cmc.doc/task_apionprem_gernerate_self_signed_openSSL.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment