[ https://issues.apache.org/jira/browse/THRIFT-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14522006#comment-14522006 ]
Hudson commented on THRIFT-3117: -------------------------------- SUCCESS: Integrated in Thrift #1526 (See [https://builds.apache.org/job/Thrift/1526/]) THRIFT-3117 Java TSSLTransportFactory can't load certificates within JAR archive (roger: rev 4bf9399ca39ee4147a82aca8d69a97f2cee1b377) * lib/java/src/org/apache/thrift/transport/TSSLTransportFactory.java > 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.3 > > Original Estimate: 2h > Remaining Estimate: 2h > > 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)