Jetty 为什么我的证书这么快就到期了?
我为Artifactory创建了一个密钥库,如下所示:Jetty 为什么我的证书这么快就到期了?,jetty,ssl-certificate,Jetty,Ssl Certificate,我为Artifactory创建了一个密钥库,如下所示: openssl genrsa -des3 -out jetty.key openssl req -new -x509 -key jetty.key -out jetty.crt keytool -keystore keystore -import -alias jetty -file jetty.crt -trustcacerts openssl req -new -key jetty.key -out jetty.csr openssl
openssl genrsa -des3 -out jetty.key
openssl req -new -x509 -key jetty.key -out jetty.crt
keytool -keystore keystore -import -alias jetty -file jetty.crt -trustcacerts
openssl req -new -key jetty.key -out jetty.csr
openssl pkcs12 -inkey jetty.key -in jetty.crt -export -out jetty.pkcs12
keytool -importkeystore -srckeystore jetty.pkcs12 -srcstoretype PKCS12 -destkeystore keystore
我本周刚刚创建了它,但是已经收到一个警告,证书即将过期
"WARNING - Certificate expires in 26 day(s) ".
为什么它这么快就到期了?我怎样才能延长到期日
感谢您的帮助
谢谢尝试将
-days 360
添加到openssl req
命令中。从:
你也可以。相应的参数名为
-validity
。谢谢您的回答。它帮助了我。再过5个小时我才能给你赏金。那件事一发生我就去做。
-days n
when the -x509 option is being used this specifies the number of
days to certify the certificate for. The default is 30 days.