Skip to content

Commit 0a3b762

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 0a3b762

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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
}

src/test/java/eu/webeid/security/validator/AuthTokenCertificateTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class AuthTokenCertificateTest extends AbstractTestWithValidator {
7070

7171
private MockedStatic<DateAndTime.DefaultClock> mockedClock;
7272

73-
7473
@Override
7574
@BeforeEach
7675
protected void setup() {

0 commit comments

Comments
 (0)