consensusj
consensusj copied to clipboard
Improve SSL configuration options for RPCClient
Currently all certificate checking is disabled to allow unit testing over SSL with self-signed certificates.
A relative easy and short-term fix is to read the (currently hardcoded to false) disableSslVerification from a system property.
A better solution would be to create (enable creation of) a custom SSLSocketFactory that is easily configurable at runtime. This StackOverflow Q&A looks helpful.