diff --git a/tomcat-8.5/src/org/dogtagpki/tomcat/JSSContext.java b/tomcat-8.5/src/org/dogtagpki/tomcat/JSSContext.java index 2204c18..1f2082e 100644 --- a/tomcat-8.5/src/org/dogtagpki/tomcat/JSSContext.java +++ b/tomcat-8.5/src/org/dogtagpki/tomcat/JSSContext.java @@ -61,7 +61,7 @@ public javax.net.ssl.SSLEngine createSSLEngine() { javax.net.ssl.SSLEngine eng = ctx.createSSLEngine(); if (eng instanceof JSSEngine) { - JSSEngine j_eng = (JSSEngine) ctx.createSSLEngine(); + JSSEngine j_eng = (JSSEngine) eng; j_eng.setCertFromAlias(alias); }