This question already has an answer here:
这个问题在这里已有答案:
- generate key and certificate using keytool 2 answers
使用keytool 2答案生成密钥和证书
I used following command to generate a jks file to setup https connection in a tomcat server. But I have to add "Secuity Exceptions" whenever I accessing the tomcat server using browser.
我使用以下命令生成一个jks文件,以在tomcat服务器中设置https连接。但每当我使用浏览器访问tomcat服务器时,我都必须添加“Secuity Exceptions”。
keytool -genkey -alias tomcat -keylag RSA -keystore keystore.jks
I think, I should create another public key certificate and import it into browser to create a secure connection. How do I create the public key certificate for the jks key?
我想,我应该创建另一个公钥证书并将其导入浏览器以创建安全连接。如何为jks密钥创建公钥证书?
1 个解决方案
#1
2
You can do this with the -export
option. See the documentation. However self-signed certificates are a complete waste of time, especially now that SSL certificates can be obtained free. Get it signed. This also is documented.
您可以使用-export选项执行此操作。请参阅文档。但是,自签名证书完全是浪费时间,特别是现在可以免费获得SSL证书。得到它签名。这也记录在案。
#1
2
You can do this with the -export
option. See the documentation. However self-signed certificates are a complete waste of time, especially now that SSL certificates can be obtained free. Get it signed. This also is documented.
您可以使用-export选项执行此操作。请参阅文档。但是,自签名证书完全是浪费时间,特别是现在可以免费获得SSL证书。得到它签名。这也记录在案。