Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how can I get a X509Certificate from tomcat  RSS feed

qs Wang
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have successfully config the ssl for tomcat , then , I make a "jsp" file contain the follow: certChain[] = ([])request.getAttribute("");
if (certChain != null)
//Now in SSL and can use the certificate information to query
//the user and authenticate
out.println("<h1>HTTPS Information:<h1>");

for (int i = 0;i < certChain.length;i++)
X500Name issuer = certChain[i].getIssuerName().getName();
but , "certChain" is null. why? it is sure that I send a Certificate from the client(IE), why I can not get the Certificate from tomcat. who can help me ? tks all!
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!