Skip to content

Commit fc036ba

Browse files
committed
correct common name in certificate report
1 parent 7a77d74 commit fc036ba

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)