-
Openssl Build
perl Configure no-asm no-autoload-config no-shared VC-WIN64-ARM no-pinshared
perl Configure no-asm no-autoload-config shared VC-WIN64-ARM enable-fips
openssl在打开fips后是不可以使用MD5
-
Generarte certificate
生成private key
openssl genrsa -des3 -out ca.key 2048

生成根证书,如果想要使用其他的digest算法,可以直接将-sha384改成其他的hash算法,如-md5,--sha256
openssl req -new -x509 -sha384 -days 3650 -key ca.key -out ca.crt

生成二级证书的private key
openssl genrsa -out second.key 2048

生成二级证书的CSR
openssl req -new -key second.key -out second.csr
添加subjectName: echo "subjectAltName=IP: YourPersonalIP,IP:192.168.1.1" > server-ext.cnf
echo "subjectAltName=DNS: FQDN,IP:192.168.1.1" > server-ext.cnf
openssl x509 -req -days 365 -in second.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out second.crt

openssl x509 -req -days 365 -in second.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out second.crt -extfile server-ext.cnf
本文详细介绍了使用OpenSSL生成各种类型的数字证书的过程,包括根证书、私钥及CSR等,并展示了如何配置特定参数来定制证书。
1144

被折叠的 条评论
为什么被折叠?



