Skip to content

Commit 87466f9

Browse files
committed
Backport X509Certificate.getSubjectX500Principal() instead of getSubjectDN() fix from main
WE2-1132 Signed-off-by: Mart Somermaa <[email protected]>
1 parent fb50410 commit 87466f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/eu/webeid/security/exceptions/CertificateNotTrustedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public class CertificateNotTrustedException extends AuthTokenException {
3131

3232
public CertificateNotTrustedException(X509Certificate certificate, Throwable e) {
33-
super("Certificate " + certificate.getSubjectDN() + " is not trusted", e);
33+
super("Certificate " + certificate.getSubjectX500Principal() + " is not trusted", e);
3434
}
3535

3636
}

0 commit comments

Comments
 (0)