File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/jruby/ext/openssl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1043,15 +1043,15 @@ public IRubyObject peer_cert_chain(final ThreadContext context) {
10431043 if ( engine == null ) return runtime .getNil ();
10441044
10451045 try {
1046- javax . security . cert . Certificate [] certs = engine .getSession ().getPeerCertificateChain ();
1046+ Certificate [] certs = engine .getSession ().getPeerCertificates ();
10471047 IRubyObject [] cert_chain = new IRubyObject [ certs .length ];
10481048 for ( int i = 0 ; i < certs .length ; i ++ ) {
10491049 cert_chain [i ] = X509Cert .wrap (context , certs [i ]);
10501050 }
10511051 return runtime .newArrayNoCopy (cert_chain );
10521052 }
1053- catch (javax . security . cert . CertificateEncodingException e ) {
1054- throw X509Cert .newCertificateError (getRuntime () , e );
1053+ catch (CertificateEncodingException e ) {
1054+ throw X509Cert .newCertificateError (runtime , e );
10551055 }
10561056 catch (SSLPeerUnverifiedException e ) {
10571057 if (runtime .isVerbose () || OpenSSL .isDebug (runtime )) {
You can’t perform that action at this time.
0 commit comments