添加 server.cnf

This commit is contained in:
2026-01-18 18:01:04 +08:00
parent 9ca005e580
commit 248e7891bc

18
server.cnf Normal file
View File

@@ -0,0 +1,18 @@
# minimum server certificate config.
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
CN = My Server Cert
[v3_req]
subjectAltName = @alt_names
keyUsage = critical, digitalSignature, keyEncipherment
extendedKeyUsage = serverAuth
[alt_names]
DNS.1 = example.com
IP.1 = 1.1.1.1