tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhuvanesh Pattanashetti <>
Subject Problem setting keyAlias for https connector using tomcat 6.0 API's
Date Wed, 03 Mar 2010 14:05:57 GMT
Hello All,

I m using tomcat
to establish a connector (on some port both http & https) at run time.

I have no issues with the Http as of now.

But Https, facing one issue.

The connector specified on port is getting established successfully.

I do it as following.


connector.setProperty("keystoreFile", "C:/myKeyStore.jks");

connector.setProperty("keystorePass", "keypassword");

And some more properties.

When there is more than one certificate in the keystore, I want it to pick
particular certificate specified by alias.

But when i set *connector.setProperty ("keyAlias", "mykey");*

It’s not picking the certificate with specified alias, rather picking some
random certificate.

I tried with <Connector port="7005" keystoreFile="pathToKeyStore"
keystorePass="keypassword" keyAlias="mykey" />

This works very much fine.

Can you please suggest me how to set keyAlias for connector using connector

Please let me know if more information is needed.

Looking for your replies



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message