mirror of
https://github.com/Crocmagnon/blog.git
synced 2024-11-22 07:48:03 +01:00
982 B
982 B
title | tags | date | aliases | canonicalURL | summary | |||||
---|---|---|---|---|---|---|---|---|---|---|
Create a CSR with SAN |
|
2022-12-20T13:56:56.467033+00:00 |
|
/create-a-csr | How to generate a CSR for a basic certificate supported by modern browsers |
Another quick note today: how to generate a CSR for a basic certificate supported by modern browsers (includes Subject Alternative Name
).
Config file
# example.conf
[req]
prompt = no
distinguished_name = dn
req_extensions = req_ext
[dn]
CN = example.com
O = Company Name
L = Lyon
C = FR
[req_ext]
subjectAltName = DNS: example.com, IP: 192.168.1.1
Of course, remember to adjust the settings according to the organization you're creating the CSR for:
[dn]
(distinguished name) sectionsubjectAltName
line (DNS and IP)
Private key
openssl genrsa -out example.key 4096
CSR
openssl req -new -config example.conf -key example.key -out example.csr