File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
loader-common/src/main/java/me/mrnavastar/protoweaver/loader/netty Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public static void init(String dir) {
3939 Security .addProvider (new BouncyCastleProvider ());
4040
4141 Optional .ofNullable (System .getenv ("PROTOWEAVER_PRIVATE_KEY" )).ifPresent (value -> privateKey = new ByteArrayInputStream (value .getBytes (StandardCharsets .UTF_8 )));
42- Optional .ofNullable (System .getenv ("PROTOWEAVER_CERT" )).ifPresent (value -> privateKey = new ByteArrayInputStream (value .getBytes (StandardCharsets .UTF_8 )));
42+ Optional .ofNullable (System .getenv ("PROTOWEAVER_CERT" )).ifPresent (value -> cert = new ByteArrayInputStream (value .getBytes (StandardCharsets .UTF_8 )));
4343
4444 genKeys (dir );
4545 context = SslContextBuilder .forServer (cert , privateKey )
@@ -99,4 +99,4 @@ private static X509Certificate genCert(KeyPair keyPair) throws OperatorCreationE
9999
100100 return new JcaX509CertificateConverter ().setProvider (bcProvider ).getCertificate (certBuilder .build (contentSigner ));
101101 }
102- }
102+ }
You can’t perform that action at this time.
0 commit comments