Commit 0edf7faf authored by 马旭烽's avatar 马旭烽

feat: ssl 生成网站自签名/证书

parent 453259bf
-----BEGIN RSA PRIVATE KEY-----
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,D1B868BB5C83EFDA
tR6wZQqSlNiEqhnUwFXyxvd7XKtdUAYxCV4Kv6wqJnvEw6XAhOh69ZJJlx1rK9Bl
Tb9g0aMD7X9UZRLrTS3Uak4o7n7nRWzSwXAyswKtSwx2eDt80R8h5bUzS47Sy38M
CAokvg+zAft36ZKMZ51WHNcFm3Pdj6zKNihIXjIv3m9ng2PYK7ZLsOeSNjSoopYJ
4CcuGQWp6pShIkVq2PTQqGEA8uq3PAptcTbduoffuvPNw8QhoHvPn+SOlVsCuiQt
NcqkAlKvt6ivwD76UvJcxoj8emcgpHgHhUdExQ9K1faYqvXqjNNa0ste3NmLW5Dt
ekaJBFYHAfLhRFR4z6ZtjTeKY21Rlh/IMlBsCcUEwLH+dNUAojngfFBNWY8T2Fjs
aVQrcgYt6MRZSug7WwWMjtBrfw24ROIHLvndDNWtns0RzzZ35WqDhJ/kJKefq9V3
w1wJn4LaSWcP0go3bVxB4OAk6XvMr5rxK7LVIRmGauPoyOz6LIVKaQOEiRpVUuxM
dTotRiD0Lq2Mddq7KmGNGmrmEf/Vd3Lnms7+HPUlYwgQT9DHijIrocMqhhTYuB9J
EC/+ToI9nUu1taDCsEcXvRJILL8QEDXJeSC6vHO04lfuvSGR8oz+/JpQkKdXh4P/
HXFL1tFnqTl9oqrCCH+DJayp+gKW3qzZcqF+l1OYM5/n84Z76iVJSX0/8MJPkaJc
BzSTl0JUPEUCPEPD0cWdyJENqL6yU/2yjQWLwQkMa8hA5Ok6CxhKK7I8j3XT9Q1z
JqsKRkCxJc9YEUU7o+oTW1uA1UuEkWk+gNYlinVkHDzlY6982Jz3+2ep0LD54Zvu
Se2zHpXVnzZcW+4XuqpZ8q8iC1b3+1nt5EUVZlsN9NvPwCD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TEj4pl3FSnxnUJv6MbbsjiIRkGQBRpr7YRq40V/iRU2SYgBJ83ywgugV92pPk2
VFtIIqyOqtF+oDzXhjOppHee0sGE2RUPNsUoj9VUaTBVrj91BmRsdgFCVpAeHx7N
f6D7YAwOrwKBgHJD+agATd3ZIZJRRccNb1t2IckYbbwQeL5pcAJfIzCcpSQVYUCO
sx6E8ljrMvJeBryaB2FUj/eGy0Z4yU4+6VATdBVBAa/c/Cf6mpGx3xQr5PmIibYc
KGXwokDZ/9EpXpiu6QUuolIQsagYXjX4ESbkHtdexE0aBNNS50D8aFn/AoGAc07x
ZFc6sE3W2TimqngYEzveYv3BUN9/n+Ks/bBBSgdGqDGR/2a6FB+xRwal6UUytdSq
xzQoWgAO0r2f4qrTx6sh4imMHdY1be2UpYG0RQd8bRUeoF/jcm1Ux6Jqcc32zjcW
//dq/V+/PopGNCjMR9v6YTTs4MDjEzkVAnQcn4ECgYEA8ktImJ6iR2kTNs/FypmD
sTfiCAbqKUuwGzh3fZ/7U9Pz+gmk9SbBg348q2Sa+mrNBe3gtgWXgJoJvF8pCIx9
/D5szxBYDRNi7xnyEG0ignzVZ7SEXN/vpUoMOlHuymPdCRgwSQzQTLySGgNcVneg
g1/a2iFGaQz1P05dwyx1q7g=
-----END PRIVATE KEY-----
openssl x509 -noout -modules -in './SSL/rootCA.pem' | openssl md5
openssl x509 -noout -modules -in './SSL/rootCA.pem' | openssl md5
openssl x509 -noout -modules -in './SSL/server.crt' | openssl md5
openssl x509 -noout -modules -in './SSL/server.key' | openssl md5
openssl x509 -noout -modules -in './SSL/server.csr' | openssl md5
# step1 创建根SSL证书
# step1 创建根SSL证书
# step1-1 生成 RSA-2048 密钥
openssl genrsa -des3 -out ./SSL/rootCA.key 2048
# step1-2 创建新的根SSL证书
openssl req -x509 -new -nodes -key ./SSL/rootCA.key -sha256 -days 1024 -out ./SSL/rootCA.pem
openssl req -new -sha256 -nodes -out ./SSL/server.csr -newkey rsa:2048 -keyout ./SSL/server.key -config ./server.csr.cnf
openssl req -new -sha256 -nodes -out ./SSL/server.csr -newkey rsa:2048 -keyout ./SSL/server.key -config ./server.csr.cnf
openssl x509 -req -in ./SSL/server.csr -CA ./SSL/rootCA.pem -CAkey ./SSL/rootCA.key -CAcreateserial -out ./SSL/server.crt -days 500 -sha256 -extfile ./v3.ext
[req]
[req]
default_bits = 2048
prompt = noop
default_md = sha256
distinguished_name = dn
[dn]
C = cn
ST = RandomState
L = RandomCity
O = RandomOrganization
OU = RandomOrganizationUnit
emailAddress = javascript.abc@gmail.com
CN = localhost
\ No newline at end of file
authorityKeyIdentifier=keyid,issuer
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment
subjectAltName = @alt_names
[alt_names]
#这里可以是多个域名,如DNS.1、DNS.2、DNS.3 ...... 这行是备注可以删掉
DNS.1 = localhost
DNS.2 = 127.0.0.1
DNS.3 = www.wegocare.cn
\ No newline at end of file
# https://www.qs5.org/Post/713.html 参考
# https://www.qs5.org/Post/713.html 参考
......@@ -41,6 +41,13 @@ foreach ($TASK in $TASKS) {
git --no-pager log --author="maxufeng" --since=24.hours --no-merges --pretty=format:"%B" | Add-Content -Encoding utf8 -Path $OUT_FILE;
}
"
---------------------------------
写入时间
" | Add-Content -Encoding utf8 -Path $OUT_FILE
Get-Date | Add-Content -Encoding utf8 -Path $OUT_FILE
Write-Output "
---------------------------------
礼乐崩坏,心系羽族,合乎舟礼。666
......
Certificate:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=CN, ST=GD, L=GZ, O=LX, OU=Dev, CN=maXuFeng/emailAddress=524915379@qq.com
Validity
Not Before: Jul 16 14:33:32 2023 GMT
Not After : Jul 15 14:33:32 2024 GMT
Subject: C=CN, ST=GD, O=LX, OU=Dev, CN=www.wegocare.cn/emailAddress=524915379@qq.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:ae:be:0a:9e:f1:35:ff:3b:df:ae:d0:5a:62:ce:
b6:03:f9:30:cd:e5:c9:ef:7c:2a:d1:db:f3:01:60:
dd:93:90:3c:0f:40:3c:79:84:1b:3f:83:a2:bd:06:
2f:3e:47:e2:6f:9e:2c:7c:eb:ba:c0:8a:32:c9:ad:
48:bb:55:23:01:3c:01:46:ad:93:41:c9:d8:66:e9:
c3:7d:1e:d7:4c:3c:0c:ec:09:08:b6:96:f6:8c:40:
a6:61:36:9b:fc:9f:31:b2:61:c8:c5:f8:a4:24:f9:
14:d3:8a:2f:d9:c3:84:fd:b7:9b:42:06:d0:a1:e5:
66:c8:4e:bf:16:60:2d:ff:46:ae:e7:ba:f6:6b:27:
e2:77:07:fa:00:41:c6:0c:11:97:0f:76:0f:96:af:
24:91:58:35:7b:22:1f:ee:21:8b:ee:01:f9:f9:14:
45:fc:74:5a:c3:eb:3e:b5:81:99:8e:2c:c7:35:fe:
d0:97:a2:26:90:64:9f:5b:33:12:d5:bc:f9:17:8a:
6f:d8:05:09:d4:ee:fb:93:63:65:7e:05:a1:c6:bb:
04:eb:d7:e4:10:0f:dd:98:16:93:d4:a6:81:c3:70:
aa:a4:a8:cb:29:41:0c:d3:10:9a:a0:08:2d:6f:0e:
b5:24:39:d8:ba:87:bf:71:39:35:86:1a:1f:07:9e:
b3:79
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
54:EE:80:8B:B9:5C:45:85:B3:B4:C6:CA:29:81:49:8F:46:61:45:E7
X509v3 Authority Key Identifier:
keyid:82:12:4E:1A:9B:C0:37:F4:8E:B3:15:FA:D5:19:98:7E:79:D8:F8:DA
Signature Algorithm: sha256WithRSAEncryption
42:e3:0e:8b:53:95:bb:8e:66:e8:31:5e:a8:f9:16:b6:cf:35:
87:0f:02:e2:e9:0c:a0:ca:0d:8c:93:23:f8:29:73:20:94:fb:
c0:96:15:86:80:ff:e9:43:0b:cf:43:4b:fe:54:d4:fd:ed:d6:
3f:80:b4:a2:d0:08:88:23:dd:86:b3:67:ff:80:fd:61:02:6a:
39:23:1e:e6:f7:10:60:0b:ee:c8:1a:78:97:09:ad:49:d0:ee:
dd:57:f1:11:04:9e:85:af:15:1e:e9:e3:03:10:c1:15:57:41:
ec:93:29:9d:02:65:7d:f0:b4:18:1d:2d:08:ab:0c:5c:c5:47:
a8:e8:5b:73:b2:ae:14:07:0f:0e:43:a4:e8:5b:83:04:0f:6d:
25:13:72:51:47:d5:ad:7b:55:d0:18:a3:6d:5f:70:2d:c7:e3:
1d:19:b9:4a:70:27:03:58:fa:64:c8:13:bd:de:52:4c:e8:fd:
e9:e8:37:e6:fc:7a:c4:78:c5:a6:63:2f:f6:14:ae:31:99:56:
30:03:3f:b2:12:e6:92:96:3e:13:f2:25:10:8e:53:e0:c9:3d:
ac:9a:8e:a5:6b:ff:dd:17:8b:3e:c4:cd:64:a4:ae:48:92:01:
3b:dc:58:6d:89:11:b8:8a:5c:cc:1a:7a:06:5d:cd:00:7c:63:
1f:74:3b:13
-----BEGIN CERTIFICATE-----
MIID3DCCAsSgAwIBAgIBATANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJDTjEL
MAkGA1UECAwCR0QxCzAJBgNVBAcMAkdaMQswCQYDVQQKDAJMWDEMMAoGA1UECwwD
RGV2MREwDwYDVQQDDAhtYVh1RmVuZzEfMB0GCSqGSIb3DQEJARYQNTI0OTE1Mzc5
QHFxLmNvbTAeFw0yMzA3MTYxNDMzMzJaFw0yNDA3MTUxNDMzMzJaMHAxCzAJBgNV
BAYTAkNOMQswCQYDVQQIDAJHRDELMAkGA1UECgwCTFgxDDAKBgNVBAsMA0RldjEY
MBYGA1UEAwwPd3d3LndlZ29jYXJlLmNuMR8wHQYJKoZIhvcNAQkBFhA1MjQ5MTUz
NzlAcXEuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArr4KnvE1
/zvfrtBaYs62A/kwzeXJ73wq0dvzAWDdk5A8D0A8eYQbP4OivQYvPkfib54sfOu6
wIoyya1Iu1UjATwBRq2TQcnYZunDfR7XTDwM7AkItpb2jECmYTab/J8xsmHIxfik
JPkU04ov2cOE/bebQgbQoeVmyE6/FmAt/0au57r2ayfidwf6AEHGDBGXD3YPlq8k
kVg1eyIf7iGL7gH5+RRF/HRaw+s+tYGZjizHNf7Ql6ImkGSfWzMS1bz5F4pv2AUJ
1O77k2NlfgWhxrsE69fkEA/dmBaT1KaBw3CqpKjLKUEM0xCaoAgtbw61JDnYuoe/
cTk1hhofB56zeQIDAQABo3sweTAJBgNVHRMEAjAAMCwGCWCGSAGG+EIBDQQfFh1P
cGVuU1NMIEdlbmVyYXRlZCBDZXJ0aWZpY2F0ZTAdBgNVHQ4EFgQUVO6Ai7lcRYWz
tMbKKYFJj0ZhRecwHwYDVR0jBBgwFoAUghJOGpvAN/SOsxX61RmYfnnY+NowDQYJ
KoZIhvcNAQELBQADggEBAELjDotTlbuOZugxXqj5FrbPNYcPAuLpDKDKDYyTI/gp
cyCU+8CWFYaA/+lDC89DS/5U1P3t1j+AtKLQCIgj3YazZ/+A/WECajkjHub3EGAL
7sgaeJcJrUnQ7t1X8REEnoWvFR7p4wMQwRVXQeyTKZ0CZX3wtBgdLQirDFzFR6jo
W3OyrhQHDw5DpOhbgwQPbSUTclFH1a17VdAYo21fcC3H4x0ZuUpwJwNY+mTIE73e
Ukzo/enoN+b8esR4xaZjL/YUrjGZVjADP7IS5pKWPhPyJRCOU+DJPayajqVr/90X
iz7EzWSkrkiSATvcWG2JEbiKXMwaegZdzQB8Yx90OxM=
-----END CERTIFICATE-----
Certificate:
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=CN, ST=GD, L=GZ, O=LX, OU=Dev, CN=maXuFeng/emailAddress=524915379@qq.com
Validity
Not Before: Jul 16 14:33:44 2023 GMT
Not After : Jul 15 14:33:44 2024 GMT
Subject: C=CN, ST=GD, O=LX, OU=Dev, CN=fireman34/emailAddress=524915379@qq.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:f4:22:e8:24:46:ba:f3:7a:21:81:ea:c9:af:54:
f8:59:d8:a5:8e:27:0f:c5:3f:a5:5e:87:3e:c0:f3:
50:60:86:10:20:b3:45:0b:37:17:c8:d8:c6:6a:0b:
90:49:73:bf:f6:86:35:8f:4f:23:29:b2:e0:09:d9:
1b:df:45:01:99:8a:48:b7:77:4d:7e:4e:9b:ea:bc:
d0:6d:7a:c8:6b:81:c8:46:1d:97:21:07:c5:c3:4f:
8c:c4:fc:61:0d:6c:d4:67:65:de:05:3a:a8:c3:50:
ba:78:4b:ff:a9:09:b2:5a:bc:03:a8:ed:14:7d:20:
75:06:d4:f6:6d:8e:ef:10:ac:f5:e3:dc:28:7c:3f:
b6:a7:db:b3:cf:d8:04:24:cf:90:87:4e:57:bd:a8:
5f:35:f9:6a:3c:0f:27:5d:ca:5f:29:e1:3b:2a:87:
39:f4:2e:64:f1:06:b1:63:de:16:1d:29:60:ec:68:
15:f2:58:9a:20:5a:7f:89:c7:f7:c6:25:fa:ae:2d:
a2:30:84:ad:e1:41:27:0f:c7:b5:ab:2f:01:56:ca:
2a:bb:4c:0e:64:6d:ee:d0:3f:a2:4b:85:6f:0c:c8:
81:fa:97:b2:1f:f4:17:0a:9b:62:0e:bd:8f:5c:98:
12:50:b7:50:95:55:c0:ae:dd:9a:4b:44:38:83:6c:
7d:d9
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
8B:80:83:83:44:A7:24:32:39:FC:84:00:15:E5:34:82:3F:18:FC:A0
X509v3 Authority Key Identifier:
keyid:82:12:4E:1A:9B:C0:37:F4:8E:B3:15:FA:D5:19:98:7E:79:D8:F8:DA
Signature Algorithm: sha256WithRSAEncryption
11:7c:e3:1b:cb:4a:7e:b3:a1:f1:e1:b0:44:12:3d:70:ee:16:
8c:9a:95:b3:42:f9:7d:6d:75:17:41:95:3f:4a:fb:b1:c1:9a:
2a:f1:e8:1c:0d:56:61:36:58:d7:c5:0a:7d:e3:12:5f:30:ff:
b0:1f:5b:1f:4b:76:31:b5:fe:01:00:fa:b2:a9:1c:15:25:24:
b2:c1:bf:1c:68:c3:6e:7c:ab:c5:b4:7b:e4:17:38:cd:3c:9a:
f2:eb:c2:f6:d2:eb:03:32:93:70:50:2f:1f:5c:73:1b:22:ff:
3b:50:10:60:e6:5c:36:1f:57:4e:01:e0:db:46:f5:34:66:80:
4f:62:c6:63:5f:1c:81:e9:38:3e:05:dd:ae:8b:86:ef:89:89:
2b:bd:5c:a7:87:a3:d6:7e:ff:04:ea:c2:ed:38:5d:a8:bc:bc:
4b:d5:89:c2:93:40:d0:97:7b:22:d1:57:bd:9a:53:24:91:cd:
a8:d3:95:2b:31:8d:a3:d6:c7:9e:aa:bc:f7:0b:e8:f9:88:a2:
dc:3d:29:3c:ce:bd:1c:f8:7e:17:44:6f:ec:56:9e:0f:a9:4c:
c8:ad:e2:98:d3:94:23:52:6e:e3:69:3a:08:e9:73:8e:51:fc:
3f:3d:3b:6a:37:eb:d3:33:88:36:8a:c2:87:42:3c:b4:e4:65:
8a:9c:60:57
-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIBAjANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJDTjEL
MAkGA1UECAwCR0QxCzAJBgNVBAcMAkdaMQswCQYDVQQKDAJMWDEMMAoGA1UECwwD
RGV2MREwDwYDVQQDDAhtYVh1RmVuZzEfMB0GCSqGSIb3DQEJARYQNTI0OTE1Mzc5
QHFxLmNvbTAeFw0yMzA3MTYxNDMzNDRaFw0yNDA3MTUxNDMzNDRaMGoxCzAJBgNV
BAYTAkNOMQswCQYDVQQID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Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=CN, ST=GD, L=GZ, O=LX, OU=Dev, CN=maXuFeng/emailAddress=524915379@qq.com
Validity
Not Before: Jul 16 14:33:44 2023 GMT
Not After : Jul 15 14:33:44 2024 GMT
Subject: C=CN, ST=GD, O=LX, OU=Dev, CN=fireman34/emailAddress=524915379@qq.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:f4:22:e8:24:46:ba:f3:7a:21:81:ea:c9:af:54:
f8:59:d8:a5:8e:27:0f:c5:3f:a5:5e:87:3e:c0:f3:
50:60:86:10:20:b3:45:0b:37:17:c8:d8:c6:6a:0b:
90:49:73:bf:f6:86:35:8f:4f:23:29:b2:e0:09:d9:
1b:df:45:01:99:8a:48:b7:77:4d:7e:4e:9b:ea:bc:
d0:6d:7a:c8:6b:81:c8:46:1d:97:21:07:c5:c3:4f:
8c:c4:fc:61:0d:6c:d4:67:65:de:05:3a:a8:c3:50:
ba:78:4b:ff:a9:09:b2:5a:bc:03:a8:ed:14:7d:20:
75:06:d4:f6:6d:8e:ef:10:ac:f5:e3:dc:28:7c:3f:
b6:a7:db:b3:cf:d8:04:24:cf:90:87:4e:57:bd:a8:
5f:35:f9:6a:3c:0f:27:5d:ca:5f:29:e1:3b:2a:87:
39:f4:2e:64:f1:06:b1:63:de:16:1d:29:60:ec:68:
15:f2:58:9a:20:5a:7f:89:c7:f7:c6:25:fa:ae:2d:
a2:30:84:ad:e1:41:27:0f:c7:b5:ab:2f:01:56:ca:
2a:bb:4c:0e:64:6d:ee:d0:3f:a2:4b:85:6f:0c:c8:
81:fa:97:b2:1f:f4:17:0a:9b:62:0e:bd:8f:5c:98:
12:50:b7:50:95:55:c0:ae:dd:9a:4b:44:38:83:6c:
7d:d9
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
8B:80:83:83:44:A7:24:32:39:FC:84:00:15:E5:34:82:3F:18:FC:A0
X509v3 Authority Key Identifier:
keyid:82:12:4E:1A:9B:C0:37:F4:8E:B3:15:FA:D5:19:98:7E:79:D8:F8:DA
Signature Algorithm: sha256WithRSAEncryption
11:7c:e3:1b:cb:4a:7e:b3:a1:f1:e1:b0:44:12:3d:70:ee:16:
8c:9a:95:b3:42:f9:7d:6d:75:17:41:95:3f:4a:fb:b1:c1:9a:
2a:f1:e8:1c:0d:56:61:36:58:d7:c5:0a:7d:e3:12:5f:30:ff:
b0:1f:5b:1f:4b:76:31:b5:fe:01:00:fa:b2:a9:1c:15:25:24:
b2:c1:bf:1c:68:c3:6e:7c:ab:c5:b4:7b:e4:17:38:cd:3c:9a:
f2:eb:c2:f6:d2:eb:03:32:93:70:50:2f:1f:5c:73:1b:22:ff:
3b:50:10:60:e6:5c:36:1f:57:4e:01:e0:db:46:f5:34:66:80:
4f:62:c6:63:5f:1c:81:e9:38:3e:05:dd:ae:8b:86:ef:89:89:
2b:bd:5c:a7:87:a3:d6:7e:ff:04:ea:c2:ed:38:5d:a8:bc:bc:
4b:d5:89:c2:93:40:d0:97:7b:22:d1:57:bd:9a:53:24:91:cd:
a8:d3:95:2b:31:8d:a3:d6:c7:9e:aa:bc:f7:0b:e8:f9:88:a2:
dc:3d:29:3c:ce:bd:1c:f8:7e:17:44:6f:ec:56:9e:0f:a9:4c:
c8:ad:e2:98:d3:94:23:52:6e:e3:69:3a:08:e9:73:8e:51:fc:
3f:3d:3b:6a:37:eb:d3:33:88:36:8a:c2:87:42:3c:b4:e4:65:
8a:9c:60:57
-----BEGIN CERTIFICATE-----
MIID1jCCAr6gAwIBAgIBAjANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJDTjEL
MAkGA1UECAwCR0QxCzAJBgNVBAcMAkdaMQswCQYDVQQKDAJMWDEMMAoGA1UECwwD
RGV2MREwDwYDVQQDDAhtYVh1R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Uxw
8EqjLFLq3KIgYghwERJEfax5NKulQ0/Q4ETdTVxdVCVGI0HR5kRgrJQ8DN1qIuHw
+meZc+GeM9edVTlxEMfOUWa2QkMhuHmlO4T9ut8CgYEAqGKDOyG5+5dTTle7rqan
QjEVI5giP+zmovelOjem44g4FfgFcNqRiTlO+TXphzicCED64jXLpLxg8oxChIlm
i093ouMWYjxGWEltE3/Ze3i3ulL0dNQoUELschbDbZJnZT+JSkF3lM8UZvUmQ1Go
GVlP9Ai8MAfmDlcaYFyO1YcCgYEAkPSZoR6b+rjqxxigH2KnP7V6ePUeTaZKto3Z
URFcPUOxKH9HTlruLA16CF5Zmae4mtseTwh7hkrtR04fnCbgWW3Q3XG4R4UY6uDA
1dP5DwkNWOcdt2CQImvf+EN58tnQ5V2ceWxN/PRevDVN1cdGF8bCIuOmXUEDmnVY
QhkIJu0CgYBa3FDrmYbExxcVNXG7up0lspH84U4p9qMecQC41RTAfXu4ugZIVhAI
ZVR4Gs+O4n7pb1i7FWthceXjJ3C7eWMpksuKhG6yMdXstL2ZVDr2z03Iv9fFolXU
LUTPVuX7TExu2c0IiOVSBspIxwfkLVdH9BsRic1B/U3ZlDXV0fav+g==
-----END RSA PRIVATE KEY-----
$Yes = 'y'
$Yes = 'y'
$isResetRootCA = Read-Host -Prompt "是否需要重新生成根证书, 是则输入 y"
$DomainName = Read-Host -Prompt "需要生成的服务域名"
# https://blog.51cto.com/walkerqt/946122
# https://blog.csdn.net/benben_2015/article/details/80633073
# https://webpack.docschina.org/configuration/dev-server/#devserverserver
# https://nginx.p2hp.com/en/docs/http/configuring_https_servers.html
# 注意配置是指 conf 的文件地址
# 注意默认是有安装的openSSL ,我们只需要添加 config 的文件路径到全局环境变量就可以了
if ($isResetRootCA -eq $Yes) {
# 不涉及域名
# 生成自签名根证书
Write-Output "生成自签名证书-密钥"
openssl genrsa -aes256 -out rootCA.key 2048
Write-Output "生成自签名证书-根证书"
openssl req -new -x509 -days 1024 -key rootCA.key -subj "/C=CN/ST=GD/L=GZ/O=LX/OU=Dev/CN=maXuFeng/emailAddress=524915379@qq.com" -out rootCA.crt
}
Write-Output "生成服务器-私钥"
openssl genrsa -out "$DomainName.server.key" 2048
Write-Output "生成服务器证书-请求文件"
openssl req -new -key "$DomainName.server.key" -subj "/C=CN/ST=GD/L=GZ/O=LX/OU=Dev/CN=$DomainName/emailAddress=524915379@qq.com" -out "$DomainName.server.csr"
Write-Output "根证书給服务器-签名"
openssl ca -config './openssl.cnf' -in "$DomainName.server.csr" -cert rootCA.crt -keyfile rootCA.key -out "$DomainName.server.crt"
Write-Output "生成客户端-私钥"
openssl genrsa -out "$DomainName.client.key" 2048
Write-Output "生成客户端证书-请求文件"
openssl req -new -key "$DomainName.client.key" -subj "/C=CN/ST=GD/L=GZ/O=LX/OU=Dev/CN=fireman34/emailAddress=524915379@qq.com" -out "$DomainName.client.csr"
Write-Output "根证书给客户端-签名"
openssl ca -config './openssl.cnf' -in "$DomainName.client.csr" -cert rootCA.crt -keyfile rootCA.key -out "$DomainName.client.crt"
V 240715143332Z 01 unknown /C=CN/ST=GD/O=LX/OU=Dev/CN=www.wegocare.cn/emailAddress=524915379@qq.com
V 240715143332Z 01 unknown /C=CN/ST=GD/O=LX/OU=Dev/CN=www.wegocare.cn/emailAddress=524915379@qq.com
V 240715143344Z 02 unknown /C=CN/ST=GD/O=LX/OU=Dev/CN=fireman34/emailAddress=524915379@qq.com
unique_subject = yes
unique_subject = yes
unique_subject = yes
unique_subject = yes
V 240715143332Z 01 unknown /C=CN/ST=GD/O=LX/OU=Dev/CN=www.wegocare.cn/emailAddress=524915379@qq.com
V 240715143332Z 01 unknown /C=CN/ST=GD/O=LX/OU=Dev/CN=www.wegocare.cn/emailAddress=524915379@qq.com
#
#
# OpenSSL example configuration file.
# This is mostly being used for generation of certificate requests.
#
# Note that you can include other files from the main configuration
# file using the .include directive.
#.include filename
# This definition stops the following lines choking if HOME isn't
# defined.
HOME = .
# Extra OBJECT IDENTIFIER info:
#oid_file = $ENV::HOME/.oid
oid_section = new_oids
# To use this configuration file with the "-extfile" option of the
# "openssl x509" utility, name here the section containing the
# X.509v3 extensions to use:
# extensions =
# (Alternatively, use a configuration file that has only
# X.509v3 extensions in its main [= default] section.)
[ new_oids ]
# We can add new OIDs in here for use by 'ca', 'req' and 'ts'.
# Add a simple OID like this:
# testoid1=1.2.3.4
# Or use config file substitution like this:
# testoid2=${testoid1}.5.6
# Policies used by the TSA examples.
tsa_policy1 = 1.2.3.4.1
tsa_policy2 = 1.2.3.4.5.6
tsa_policy3 = 1.2.3.4.5.7
####################################################################
[ ca ]
default_ca = CA_default # The default ca section
####################################################################
[ CA_default ]
dir = . # Where everything is kept
certs = $dir/certs # Where the issued certs are kept
crl_dir = $dir/crl # Where the issued crl are kept
database = $dir/index.txt # database index file.
#unique_subject = no # Set to 'no' to allow creation of
# several certs with same subject.
new_certs_dir = $dir # default place for new certs.
certificate = $dir/cacert.pem # The CA certificate
serial = $dir/serial # The current serial number
crlnumber = $dir/crlnumber # the current crl number
# must be commented out to leave a V1 CRL
crl = $dir/crl.pem # The current CRL
private_key = $dir/private/cakey.pem# The private key
x509_extensions = usr_cert # The extensions to add to the cert
# Comment out the following two lines for the "traditional"
# (and highly broken) format.
name_opt = ca_default # Subject Name options
cert_opt = ca_default # Certificate field options
# Extension copying option: use with caution.
# copy_extensions = copy
# Extensions to add to a CRL. Note: Netscape communicator chokes on V2 CRLs
# so this is commented out by default to leave a V1 CRL.
# crlnumber must also be commented out to leave a V1 CRL.
# crl_extensions = crl_ext
default_days = 365 # how long to certify for
default_crl_days= 30 # how long before next CRL
default_md = default # use public key default MD
preserve = no # keep passed DN ordering
# A few difference way of specifying how similar the request should look
# For type CA, the listed attributes must be the same, and the optional
# and supplied fields are just that :-)
policy = policy_match
# For the CA policy
[ policy_match ]
countryName = match
stateOrProvinceName = match
organizationName = match
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
# For the 'anything' policy
# At this point in time, you must list all acceptable 'object'
# types.
[ policy_anything ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = supplied
emailAddress = optional
####################################################################
[ req ]
default_bits = 2048
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca # The extensions to add to the self signed cert
# Passwords for private keys if not present they will be prompted for
# input_password = secret
# output_password = secret
# This sets a mask for permitted string types. There are several options.
# default: PrintableString, T61String, BMPString.
# pkix : PrintableString, BMPString (PKIX recommendation before 2004)
# utf8only: only UTF8Strings (PKIX recommendation after 2004).
# nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings).
# MASK:XXXX a literal mask value.
# WARNING: ancient versions of Netscape crash on BMPStrings or UTF8Strings.
string_mask = utf8only
# req_extensions = v3_req # The extensions to add to a certificate request
[ req_distinguished_name ]
countryName = Country Name (2 letter code)
countryName_default = AU
countryName_min = 2
countryName_max = 2
stateOrProvinceName = State or Province Name (full name)
stateOrProvinceName_default = Some-State
localityName = Locality Name (eg, city)
0.organizationName = Organization Name (eg, company)
0.organizationName_default = Internet Widgits Pty Ltd
# we can do this but it is not needed normally :-)
#1.organizationName = Second Organization Name (eg, company)
#1.organizationName_default = World Wide Web Pty Ltd
organizationalUnitName = Organizational Unit Name (eg, section)
#organizationalUnitName_default =
commonName = Common Name (e.g. server FQDN or YOUR name)
commonName_max = 64
emailAddress = Email Address
emailAddress_max = 64
# SET-ex3 = SET extension number 3
[ req_attributes ]
challengePassword = A challenge password
challengePassword_min = 4
challengePassword_max = 20
unstructuredName = An optional company name
[ usr_cert ]
# These extensions are added when 'ca' signs a request.
# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.
basicConstraints=CA:FALSE
# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.
# This is OK for an SSL server.
# nsCertType = server
# For an object signing certificate this would be used.
# nsCertType = objsign
# For normal client use this is typical
# nsCertType = client, email
# and for everything including object signing:
# nsCertType = client, email, objsign
# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment
# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"
# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer
# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move
# Copy subject details
# issuerAltName=issuer:copy
#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName
# This is required for TSA certificates.
# extendedKeyUsage = critical,timeStamping
[ v3_req ]
# Extensions to add to a certificate request
basicConstraints = CA:FALSE
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
[ v3_ca ]
# Extensions for a typical CA
# PKIX recommendation.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer
basicConstraints = critical,CA:true
# Key usage: this is typical for a CA certificate. However since it will
# prevent it being used as an test self-signed certificate it is best
# left out by default.
# keyUsage = cRLSign, keyCertSign
# Some might want this also
# nsCertType = sslCA, emailCA
# Include email address in subject alt name: another PKIX recommendation
# subjectAltName=email:copy
# Copy issuer details
# issuerAltName=issuer:copy
# DER hex encoding of an extension: beware experts only!
# obj=DER:02:03
# Where 'obj' is a standard or added object
# You can even override a supported extension:
# basicConstraints= critical, DER:30:03:01:01:FF
[ crl_ext ]
# CRL extensions.
# Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
# issuerAltName=issuer:copy
authorityKeyIdentifier=keyid:always
[ proxy_cert_ext ]
# These extensions should be added when creating a proxy certificate
# This goes against PKIX guidelines but some CAs do it and some software
# requires this to avoid interpreting an end user certificate as a CA.
basicConstraints=CA:FALSE
# Here are some examples of the usage of nsCertType. If it is omitted
# the certificate can be used for anything *except* object signing.
# This is OK for an SSL server.
# nsCertType = server
# For an object signing certificate this would be used.
# nsCertType = objsign
# For normal client use this is typical
# nsCertType = client, email
# and for everything including object signing:
# nsCertType = client, email, objsign
# This is typical in keyUsage for a client certificate.
# keyUsage = nonRepudiation, digitalSignature, keyEncipherment
# This will be displayed in Netscape's comment listbox.
nsComment = "OpenSSL Generated Certificate"
# PKIX recommendations harmless if included in all certificates.
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer
# This stuff is for subjectAltName and issuerAltname.
# Import the email address.
# subjectAltName=email:copy
# An alternative to produce certificates that aren't
# deprecated according to PKIX.
# subjectAltName=email:move
# Copy subject details
# issuerAltName=issuer:copy
#nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
#nsBaseUrl
#nsRevocationUrl
#nsRenewalUrl
#nsCaPolicyUrl
#nsSslServerName
# This really needs to be in place for it to be a proxy certificate.
proxyCertInfo=critical,language:id-ppl-anyLanguage,pathlen:3,policy:foo
####################################################################
[ tsa ]
default_tsa = tsa_config1 # the default TSA section
[ tsa_config1 ]
# These are used by the TSA reply generation only.
dir = ./demoCA # TSA root directory
serial = $dir/tsaserial # The current serial number (mandatory)
crypto_device = builtin # OpenSSL engine to use for signing
signer_cert = $dir/tsacert.pem # The TSA signing certificate
# (optional)
certs = $dir/cacert.pem # Certificate chain to include in reply
# (optional)
signer_key = $dir/private/tsakey.pem # The TSA private key (optional)
signer_digest = sha256 # Signing digest to use. (Optional)
default_policy = tsa_policy1 # Policy if request did not specify it
# (optional)
other_policies = tsa_policy2, tsa_policy3 # acceptable policies (optional)
digests = sha1, sha256, sha384, sha512 # Acceptable message digests (mandatory)
accuracy = secs:1, millisecs:500, microsecs:100 # (optional)
clock_precision_digits = 0 # number of digits after dot. (optional)
ordering = yes # Is ordering defined for timestamps?
# (optional, default: no)
tsa_name = yes # Must the TSA name be included in the reply?
# (optional, default: no)
ess_cert_id_chain = no # Must the ESS cert id chain be included?
# (optional, default: no)
ess_cert_id_alg = sha1 # algorithm to compute certificate
# identifier (optional, default: sha1)
-----BEGIN CER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, ST=GD, L=GZ, O=LX, OU=Dev, CN=maXuFeng/emailAddress=524915379@qq.com
Validity
Not Before: Jul 16 14:33:32 2023 GMT
Not After : Jul 15 14:33:32 2024 GMT
Subject: C=CN, ST=GD, O=LX, OU=Dev, CN=www.wegocare.cn/emailAddress=524915379@qq.com
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
00:ae:be:0a:9e:f1:35:ff:3b:df:ae:d0:5a:62:ce:
b6:03:f9:30:cd:e5:c9:ef:7c:2a:d1:db:f3:01:60:
dd:93:90:3c:0f:40:3c:79:84:1b:3f:83:a2:bd:06:
2f:3e:47:e2:6f:9e:2c:7c:eb:ba:c0:8a:32:c9:ad:
48:bb:55:23:01:3c:01:46:ad:93:41:c9:d8:66:e9:
c3:7d:1e:d7:4c:3c:0c:ec:09:08:b6:96:f6:8c:40:
a6:61:36:9b:fc:9f:31:b2:61:c8:c5:f8:a4:24:f9:
14:d3:8a:2f:d9:c3:84:fd:b7:9b:42:06:d0:a1:e5:
66:c8:4e:bf:16:60:2d:ff:46:ae:e7:ba:f6:6b:27:
e2:77:07:fa:00:41:c6:0c:11:97:0f:76:0f:96:af:
24:91:58:35:7b:22:1f:ee:21:8b:ee:01:f9:f9:14:
45:fc:74:5a:c3:eb:3e:b5:81:99:8e:2c:c7:35:fe:
d0:97:a2:26:90:64:9f:5b:33:12:d5:bc:f9:17:8a:
6f:d8:05:09:d4:ee:fb:93:63:65:7e:05:a1:c6:bb:
04:eb:d7:e4:10:0f:dd:98:16:93:d4:a6:81:c3:70:
aa:a4:a8:cb:29:41:0c:d3:10:9a:a0:08:2d:6f:0e:
b5:24:39:d8:ba:87:bf:71:39:35:86:1a:1f:07:9e:
b3:79
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Basic Constraints:
CA:FALSE
Netscape Comment:
OpenSSL Generated Certificate
X509v3 Subject Key Identifier:
54:EE:80:8B:B9:5C:45:85:B3:B4:C6:CA:29:81:49:8F:46:61:45:E7
X509v3 Authority Key Identifier:
keyid:82:12:4E:1A:9B:C0:37:F4:8E:B3:15:FA:D5:19:98:7E:79:D8:F8:DA
Signature Algorithm: sha256WithRSAEncryption
42:e3:0e:8b:53:95:bb:8e:66:e8:31:5e:a8:f9:16:b6:cf:35:
87:0f:02:e2:e9:0c:a0:ca:0d:8c:93:23:f8:29:73:20:94:fb:
c0:96:15:86:80:ff:e9:43:0b:cf:43:4b:fe:54:d4:fd:ed:d6:
3f:80:b4:a2:d0:08:88:23:dd:86:b3:67:ff:80:fd:61:02:6a:
39:23:1e:e6:f7:10:60:0b:ee:c8:1a:78:97:09:ad:49:d0:ee:
dd:57:f1:11:04:9e:85:af:15:1e:e9:e3:03:10:c1:15:57:41:
ec:93:29:9d:02:65:7d:f0:b4:18:1d:2d:08:ab:0c:5c:c5:47:
a8:e8:5b:73:b2:ae:14:07:0f:0e:43:a4:e8:5b:83:04:0f:6d:
25:13:72:51:47:d5:ad:7b:55:d0:18:a3:6d:5f:70:2d:c7:e3:
1d:19:b9:4a:70:27:03:58:fa:64:c8:13:bd:de:52:4c:e8:fd:
e9:e8:37:e6:fc:7a:c4:78:c5:a6:63:2f:f6:14:ae:31:99:56:
30:03:3f:b2:12:e6:92:96:3e:13:f2:25:10:8e:53:e0:c9:3d:
ac:9a:8e:a5:6b:ff:dd:17:8b:3e:c4:cd:64:a4:ae:48:92:01:
3b:dc:58:6d:89:11:b8:8a:5c:cc:1a:7a:06:5d:cd:00:7c:63:
1f:74:3b:13
-----BEGIN CERTIFICATE-----
MIID3DCCAsSgAwIBAgIBATANBgkqhkiG9w0BAQsFADB2MQswCQYDVQQGEwJDTjEL
MAkGA1UECAwCR0QxCzAJBgNVBAcMAkdaMQswCQYDVQQKDAJMWDEMMAoGA1UECwwD
RGV2MREwDwYDVQQDDAhtYVh1RmVuZzEfMB0GCSqGSIb3DQEJARYQNTI0OTE1Mzc5
QHFxLmNvbTAeFw0yMzA3MTYxNDMzMzJaFw0yNDA3MTUx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RFydnF2Yhhc6qhm
fWGTKz3PsDfnGf+AWEdip6MK7PREDtgAsId53yECgYEA1ybGS2NY+zJlxNBltu2A
S6L1CVAiqADKPA+1/CRtcN4EfC5iUaNkWSLY0zO3GZgGRkJxNqu17S8IOO2jznxt
Br8eG4w/Sf1DkH+UC3iz5qCC9LGlLm/OZwyQFBleWkAQtaONbO/WMWU0SV2PL822
xYM4Fhc0y2dAS66ObzYOffECgYAhJuUI0im79f88470TJpzxWPKE/MLK+Q14Ity2
MRs0m8DP42OL/s+6/w9TJ6L2WNHFArr/eXCh1ItJdcdYqpfNg9nuwWJ2Mr8smaiW
2q9FaoxRQksj46J9Q8dqNkyg00I1OROsZVkLnGr3YzRKqUfTmJQDc/JPZApkBfp3
xRzAgQKBgQC+/j7eJ//tsCDLw9BfD+6vtX+VJO6RPREikI3gxTrVteWbqW4fkXzV
SOrZL/JJyU/eozJpRtTkhJi4dRc1jjMzEAqeoq2Yc201kyqWrHk42VFeutIfK3Vt
Fc13XDjuYldEcAie5DACJ6uppoFa7k7NB3VMI4FeWUMcS5eAXzrvmw==
-----END RSA PRIVATE KEY-----
New-Item D:\Study\nodeStudy\扩展脚本\temp2.txt
Write-Output "abcdef" > D:\Study\nodeStudy\扩展脚本\temp2.txt
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment