SSL自建证书
ssl证书生成
1 |
|
参考openssl.cnf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[req]
distinguished_name = harbor #对应下方[hyjj]
req_extensions = harbor_req #对应下方[hyjj_req]
[hyjj]
countryName = Country Name (2 letter code)
countryName_default = CN
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = SD
localityName = Locality Name (eg, city)
localityName_default = JiNan
organizationalUnitName = Organizational Unit Name (eg, section)
organizationalUnitName_default = He Yan Jiu Ji
commonName = harbor.hyjj.com
commonName_max = 64
[hyjj_req]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = harbor.xxiao.com
IP.1 = 192.168.1.1
win安装脚本
certmgr.exe需要预先下载
1 |
|
SSL自建证书
http://xxiao.top/2023/12/08/SSL自建证书/