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) {
1043
1043
if ( engine == null ) return runtime .getNil ();
1044
1044
1045
1045
try {
1046
- javax . security . cert . Certificate [] certs = engine .getSession ().getPeerCertificateChain ();
1046
+ Certificate [] certs = engine .getSession ().getPeerCertificates ();
1047
1047
IRubyObject [] cert_chain = new IRubyObject [ certs .length ];
1048
1048
for ( int i = 0 ; i < certs .length ; i ++ ) {
1049
1049
cert_chain [i ] = X509Cert .wrap (context , certs [i ]);
1050
1050
}
1051
1051
return runtime .newArrayNoCopy (cert_chain );
1052
1052
}
1053
- catch (javax . security . cert . CertificateEncodingException e ) {
1054
- throw X509Cert .newCertificateError (getRuntime () , e );
1053
+ catch (CertificateEncodingException e ) {
1054
+ throw X509Cert .newCertificateError (runtime , e );
1055
1055
}
1056
1056
catch (SSLPeerUnverifiedException e ) {
1057
1057
if (runtime .isVerbose () || OpenSSL .isDebug (runtime )) {
You can’t perform that action at this time.
0 commit comments