[
https://issues.apache.org/jira/browse/AVRO-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997485#comment-12997485
]
Philip Zeyliger commented on AVRO-772:
--------------------------------------
Though Avro doesn't support it directly, it's not hard to work around. The
following is cut and paste from some code we have internally, with some stuff
removed (hence the pad indentation).
{noformat}
SpecificResponder sr = new SpecificResponder(XProtocol.class,
new XProtocolImpl(...));
Connector connector;
XSettings settings;
SslSocketConnector sslconn = new SslSocketConnector();
sslconn.setKeystore(settings.getKeystorePath());
sslconn.setKeyPassword(settings.getKeystorePassword());
sslconn.setTruststore(settings.getTruststorePath());
sslconn.setTrustPassword(settings.getTruststorePassword());
sslconn.setNeedClientAuth(settings.isNeedAgentValidation());
connector = sslconn;
connector.setPort(XPort);
agentServer = new HttpConnectorServer(sr, connector);
{noformat}
> Can not use SSL with HTTP RPC
> -----------------------------
>
> Key: AVRO-772
> URL: https://issues.apache.org/jira/browse/AVRO-772
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.4.1
> Reporter: Bruce Mitchener
> Priority: Blocker
>
> I don't see that it is possible to set up the HTTP RPC code to use SSL.
> Flume needs this feature if the Avro support is to keep pace with the Thrift
> support.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira