简体   繁体   English

Tomcat SSL证书问题

[英]Tomcat SSL Cert Issue

I havre a AD issued Cert to bind to TomCat SSL Install. 我有一个AD颁发的证书来绑定到TomCat SSL Install。

I create the keystore/import the certificate: 我创建密钥库/导入证书:

keytool -import -alias stan -file myadcert.cer -keystore webserverkeystore

  • Configured SSL Connector referencing Keystore 配置的SSL连接器引用密钥库

List item 项目清单

Restart the TomCat service 重新启动TomCat服务

When i go to the certs FQDN/webapp.html - i get nothing. 当我转到证书FQDN / webapp.html时,我什么也没得到。

Why is this? 为什么是这样?

There is talk of converting the .cer cert to a jks? 有谈论将.cer证书转换为jks吗? Also that there is the need to install a root cert or intermediate cert is it? 另外,是否需要安装根证书或中间证书?

Does anyone know how this is made simple. 有谁知道这是如何变得简单。 I have gone through the documentation and it is really not very clear having followed the steps carefully. 我已经仔细阅读了文档,但仔细遵循这些步骤确实不是很清楚。

Would be grateful for any help. 将不胜感激。

Thanks 谢谢

You started by generating a keypair in the KeyStore. 您首先在KeyStore中生成一个密钥对。

You then generated a CSR. 然后,您生成了一个CSR。

You then had the CSR signed and obtained a signed certificate. 然后,您对CSR进行了签名并获得了签名证书。

You now have to import the certificate into the same KeyStore, using the same alias you started with , and without the -trustcacerts option. 现在,您必须使用从开头的别名没有 -trustcacerts选项)将证书导入到相同的 KeyStore中。

there are various types of certificates - domain, root, bundle_ca 有多种类型的证书-域,根,bundle_ca
So you need to include all of them in your JKS (java key store) 因此,您需要将所有它们都包含在您的JKS(Java密钥库)中

     <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" 
        scheme="https" secure="true" clientAuth="false" 
        sslProtocol="TLS"
        keystoreType="PKCS12" 
        keystoreFile="/conf/certificate/tomcatm.p12" 
        keystorePass="password" 
        ciphers="TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,

TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_25‌​6_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,SSL_RSA_WITH_RC4_128_SHA" /> TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_25 6_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA,SSL_RSA_WITH_RC4_128_SHA” />

this is what i did and it worked with great. 这就是我所做的,并且效果很好。

hope you have also done the following 希望你也做了以下
1. mapped the namedserver to the domain 1.将namedserver映射到域
2. changed the A records in DNS 2.更改了DNS中的A记录
3. domain is working in non https mode (to just confirm) 3.域在非https模式下工作(仅用于确认)
4. restart the tomcat after mapping the JKS , Certificates url in server.xml 4.在映射server.xml中的JKS,证书URL后重新启动tomcat。


good luck 祝好运

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM