Sunday, August 2, 2020

self signed certificate: wildcard certificate

Generate private key
$ openssl genrsa -des3 -out medogzca.key 2048
Generating RSA private key, 2048 bit long modulus (2 primes)
.............................................................+++++
......+++++
e is 65537 (0x010001)
Enter pass phrase for medogzca.key:
Verifying - Enter pass phrase for medogzca.key:


Create CA-signed certificate
$ openssl req -x509 -new -nodes -key medogzca.key -sha256 -days 3650 -out medogzca.pem
Enter pass phrase for medogzca.key:
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) [XX]:US
State or Province Name (full name) []:MYSTATE
Locality Name (eg, city) [Default City]:MYCITY
Organization Name (eg, company) [Default Company Ltd]:medogz
Organizational Unit Name (eg, section) []:code devel
Common Name (eg, your name or your server's hostname) []:*.medogz.home
Email Address []:meis@medogz.home

No comments:

Post a Comment