You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Smyatkin Maxim (JIRA)" <ji...@apache.org> on 2015/04/26 16:36:38 UTC
[jira] [Created] (THRIFT-3117) Java TSSLTransportFactory can't load
certificates within JAR archive
Smyatkin Maxim created THRIFT-3117:
--------------------------------------
Summary: Java TSSLTransportFactory can't load certificates within JAR archive
Key: THRIFT-3117
URL: https://issues.apache.org/jira/browse/THRIFT-3117
Project: Thrift
Issue Type: Bug
Components: Java - Library
Affects Versions: 0.9.2
Reporter: Smyatkin Maxim
Priority: Trivial
Fix For: 0.9.2
TSSLTransportFactory's setKeyStore/setTrustStore accept only plain file system paths what makes it impossible to use URL's or classpath based resources. E.g., I didn't find a way to load certificate from JAR.
I propose to look for both URLs and resources if the file can not be found by the given path. It's how it is done in ActiveMQ:
https://access.redhat.com/documentation/en-US/Fuse_ESB/4.4.1/html/ActiveMQ_Security_Guide/files/SSL-SecureJavaClients.html
https://github.com/apache/activemq/blob/master/activemq-client/src/main/java/org/apache/activemq/ActiveMQSslConnectionFactory.java#L175-L206
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)