Created
June 17, 2022 15:24
-
-
Save blokhin/25da3180073bc8c3f2aec5f9d6d357ac to your computer and use it in GitHub Desktop.
Generating the SSL cert by a config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat server_ssl.cnf | |
``` | |
[req] | |
distinguished_name = req_distinguished_name | |
attributes = req_attributes | |
req_extensions = v3_req | |
prompt = no | |
[req_distinguished_name] | |
C = DE | |
L = Stadt | |
O = GmbH | |
OU = Abteilung | |
CN = test.com | |
[req_attributes] | |
[v3_req] | |
keyUsage = keyEncipherment, dataEncipherment | |
extendedKeyUsage = serverAuth | |
subjectAltName = @alt_names | |
[alt_names] | |
DNS.1 = test.com | |
DNS.2 = test2.com | |
DNS.3 = test3.com | |
``` | |
openssl genrsa -out ssl_cert.key 4096 | |
openssl req -new -key ssl_cert.key -out ssl_cert.csr -config server_ssl.cnf | |
openssl req -in ssl_cert.csr -text -noout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment