We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 46e3e3f + f84f216 commit d476597Copy full SHA for d476597
src/aleph/netty.clj
@@ -715,10 +715,12 @@
715
"A self-signed SSL context for servers."
716
[]
717
(let [cert (SelfSignedCertificate.)]
718
- (SslContext/newServerContext (.certificate cert) (.privateKey cert))))
+ (.build (SslContextBuilder/forServer (.certificate cert) (.privateKey cert)))))
719
720
(defn insecure-ssl-client-context []
721
- (SslContext/newClientContext InsecureTrustManagerFactory/INSTANCE))
+ (-> (SslContextBuilder/forClient)
722
+ (.trustManager InsecureTrustManagerFactory/INSTANCE)
723
+ .build))
724
725
(defn- check-ssl-args
726
[private-key certificate-chain]
0 commit comments