Categories:
Android (13)
Apple Mac (27)
DH Keys (39)
DSA Keys (71)
EC Keys (1854)
Firefox (30)
General (10)
Google Chrome (25)
Intermediate CA (152)
Java VM (29)
JDK Keytool (28)
Microsoft CertUtil (29)
Microsoft Edge (9)
Mozilla CertUtil (21)
OpenSSL (236)
Other (7)
Portecle (38)
Publishers (5378)
Revoked Certificates (16)
Root CA (85)
RSA Keys (4391)
Tools (46)
Tutorial (1)
What Is (22)
Windows (127)
Collections:
Other Resources:
OpenSSL "req -x509 -newkey" - Generate Private Key and Certificate
How to generate a new private key with a public key and generate a self-signed certificate using a single OpenSSL "req" command?
✍: FYIcenter.com
If you do not have a pair of private key and public key,
and you want to generate self-signed certificate
to represent your personal identity or server identity,
you can use the OpenSSL "req -x509 -newkey" command as shown below.
The same command will generate a pair of RSA private key and public key for you too.
C:\Users\fyicenter>\local\openssl\openssl.exe OpenSSL> req -x509 -newkey rsa:512 -keyout rsa_test.key -out rsa_test.crt Generating a 512 bit RSA private key .++++++++++++ ..++++++++++++ writing new private key to 'rsa_test.key' Enter PEM pass phrase: fyicenter Verifying - Enter PEM pass phrase: fyicenter ----- 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]:us State or Province Name (full name) [Some-State]:NY Locality Name (eg, city) []:New York Organization Name (eg, company) [Internet Widgits Pty Ltd]:Donald Inc. Organizational Unit Name (eg, section) []:IT Common Name (e.g. server FQDN or YOUR name) []:www.donald.inc Email Address []:john@donald.inc
Options used in this "req" command are:
⇒ OpenSSL Self-Signed Certificate Components
2016-11-15, 2895👍, 0💬
Popular Posts:
Certificate Summary: Subject: GeoTrust Global CA Issuer: GeoTrust Global CA Expiration: 2022-05-21 0...
Certificate Summary: Subject: *.virginia.edu Issuer: InCommon Server CA Expiration: 2014-06-08 23:59...
Certificate Summary: Subject: Starfield Class 2 Certification Authority Issuer: Starfield Class 2 Ce...
Why am I getting the "MSVCR71.dll is missing" error when running the "certutil" command on my Window...
Certificate summary - Owner: www.godaddy.com, "GoDaddy.com, LLC", L=Scottsdale, ST=Arizona, US, SERI...