Creating Self-Signed Certificates for Testing
Overview
Goals
Creating a Self-Signed Certificate
openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 -nodesGenerating a RSA private key
....++++
...............++++
writing new private key to 'key.pem'
-----
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) [AU]: <country_code>
State or Province Name (full name) [Some-State]: <region>
Locality Name (eg, city) []: <city_town>
Organization Name (eg, company) [Internet Widgits Pty Ltd]: <organization>
Organizational Unit Name (eg, section) []: <team>
Common Name (e.g. server FQDN or YOUR name) []: <common_name>
Email Address []: <email_address>Bringing it Together
Last updated
Was this helpful?