Skip to content

Commit

Permalink
Illegal reflective access by com.sun.mail.util.SocketFetcher eclipse-…
Browse files Browse the repository at this point in the history
…ee4j#124

Co-authored-by: jmehrens <[email protected]>
Co-authored-by: icu5545 <[email protected]>
Signed-off-by: jmehrens <[email protected]>
  • Loading branch information
jmehrens committed Feb 7, 2024
1 parent 81da6ac commit 14b0d0a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,10 @@ public boolean verify(String server, SSLSession ssls) {
X509Certificate cert = null;
try {
cert = getX509Certificate(ssls.getPeerCertificates());
if (logger.isLoggable(Level.FINER)) {
logger.finer("matchCert server "
+ server + ", cert " + cert);
}
/*
* Check each of the subjectAltNames.
* XXX - only checks DNS names, should also handle
Expand Down Expand Up @@ -1103,7 +1107,10 @@ public boolean verify(String server, SSLSession ssls) {
try {
X509Certificate cert = getX509Certificate(
ssls.getPeerCertificates());

if (logger.isLoggable(Level.FINER)) {
logger.finer("matchCert server "
+ server + ", cert " + cert);
}
KeyStore ks = KeyStore.getInstance("pkcs12");
//TODO: Load single cert vs. load full chain
ks.setCertificateEntry("test", cert);
Expand Down

0 comments on commit 14b0d0a

Please sign in to comment.