[
https://issues.apache.org/jira/browse/THRIFT-3117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14521930#comment-14521930
]
ASF GitHub Bot commented on THRIFT-3117:
----------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/thrift/pull/465
> 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
>
> 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)