创建证书请求文件CSR和私钥
1 | openssl req -new -nodes -sha256 -newkey rsa:2048 -keyout [$Key_File] -out [$OpenSSL_CSR] |
创建证书
1 | openssl x509 -signkey xxx.key -in xxx.csr -req -days 365 -out xxx.crt |
获取证书过期时间
1 | openssl x509 -in <cert>.pem -noout -enddate |
创建证书请求文件CSR和私钥
1 | openssl req -new -nodes -sha256 -newkey rsa:2048 -keyout [$Key_File] -out [$OpenSSL_CSR] |
创建证书
1 | openssl x509 -signkey xxx.key -in xxx.csr -req -days 365 -out xxx.crt |
获取证书过期时间
1 | openssl x509 -in <cert>.pem -noout -enddate |