Skip to content

Commit 2016a3b

Browse files
authored
Merge pull request #53 from RUB-NDS/CertificateCN
correct common name in certificate report
2 parents 74ac19a + 21e2050 commit 2016a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/rub/nds/tlsscanner/probe/certificate/CertificateReportGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static void setCommonNames(CertificateReportImplementation report,
9090
if (x500name != null) {
9191
RDN[] rdNs = x500name.getRDNs(BCStyle.CN);
9292
for (int i = 0; i < rdNs.length; i++) {
93-
commonNames.append(IETFUtils.valueToString(rdNs[i]));
93+
commonNames.append(IETFUtils.valueToString(rdNs[i].getFirst().getValue()));
9494
if (i < rdNs.length - 1) {
9595
commonNames.append(" ,");
9696
}

0 commit comments

Comments
 (0)