6.Create a Certificate for OCSP Signing(创建OCSP签名) a.we create a key and CSR for the OCSP responder $ openssl req -new -newkey rsa:2048 -subj “/C=GB/O=Example/CN=OCSP Root Responder” -keyout private/root-ocsp.key -out root-ocsp.csr b.use the root CA to issue a certificate...
openssl x509 -req -in 10.12.0.2.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out 10.12.0.2.crt -days 500 -sha256 -extfile v3.ext 此时文件夹内应该有以下文件: rootCA.key - 根 CA 的私钥。 rootCA.crt - 根 CA 的证书。 10.12.0.2.key - 10.12.0.2 的私钥。 10.12.0.2.cs...
openssl req -new -out root-req.csr -key root-key.key -keyform PEM 3.自签根证书 命令: openssl x509 -req -in root-req.csr -out root-cert.cer -signkey root-key.key -CAcreateserial -days 3650 4.导出p12格式根证书 命令: openssl pkcs12 -export -clcerts -in root-cert.cer -inkey roo...
$ export OPENSSL_CONF (2)生成根证书(Root Certificate) 我们需要一个证书来为自己颁发的证书签名,这个证书可从其他CA获取,或者是自签名的根证书。这里我们生成一个自签名的根证书。 首先我们需要往配置文件里面添加一些信息,如下所示,节名和命令行工具的命令req一样。我们把所有必要的信息都写进配置,而不是在命...
(2) 生成根证书 (Root Certificate) 我们需要一个证书来为自己颁发的证书签名,这个证书可从其他CA获取,或者是自签名的根证书。这里我们生成一个自签名的根证书。 首先我们需要往配置文件里面添加一些信息,如下所示,节名和命令行工具的命令req一样。我们把所有必要的信息都写进配置,而不是在命令行输入,这是唯一指...
2.2 用rootca对intermca进行签发 $ openssl x509 \-req-days365\-intls-intermca.csr \-out tls-intermca.pem \-CA tls-rootca.pem \-CAkey tls-rootca.key.pem \-CAcreateserial \-extensions v3_ca \-extfile/etc/pki/tls/openssl.cnf
Step 1: Create OpenSSL Root CA directory structure Step 2: Configure openssl.cnf for Root and Intermediate CA Certificate Step 3: Generate the root CA Certificate Step 4: Generate the intermediate CA key pair and certificate Step 5: Generate OpenSSL Create Certificate Chain (Certificate Bundle) ...
create directory mkdir -p /opt/ca/root mkdir /opt/ca/root/key vim /opt/ca/root/openssl.cnf [ca]default_ca=CA_default[CA_default]dir=/opt/ca/root certs=$dir/certs crl_dir=$dir/crl database=$dir/index.txt new_certs_dir=$dir/newcerts certificate=$dir/key/cacert.crt serial=$dir/ser...
openssl x509 -req -in server.csr -CA rootCA.crt -CAkey rootCA.key -CAcreateserial -out server.crt -days 3650 四、生成客户端证书 客户端证书用于客户端的身份验证,以下是生成客户端证书的步骤: 1、生成客户端的私钥: openssl genrsa -out client.key 2048 ...
openssl req-new-keyprivate.pem-out certificate.csr 签署证书:使用根证书的私钥签署证书请求,生成证书文件(certificate.crt)。运行以下命令生成签署的证书文件:(下级证书) 代码语言:javascript 复制 openssl x509-req-incertificate.csr-CAroot.crt-CAkey root.key-CAcreateserial-out certificate.crt ...