Skip to content

Commit 16daabb

Browse files
Remove country specification from default certificate (#5756)
BouncyCastle now validates the X.520 country-code (2.5.4.6) attribute against ISO 3166-1, which requires exactly 2 characters. This no longer allows "C=None". Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
1 parent 9a6fe92 commit 16daabb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • bundles/org.openhab.core.io.jetty.certificate/src/main/java/org/openhab/core/io/jetty/certificate/internal

bundles/org.openhab.core.io.jetty.certificate/src/main/java/org/openhab/core/io/jetty/certificate/internal/CertificateGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public class CertificateGenerator implements BundleActivator {
7575
private static final String KEY_FACTORY_TYPE = "EC";
7676
private static final String CONTENT_SIGNER_ALGORITHM = "SHA256withECDSA";
7777
private static final String CERTIFICATE_X509_TYPE = "X.509";
78-
private static final String X500_NAME = "CN=openhab.org, OU=None, O=None, L=None, C=None";
78+
private static final String X500_NAME = "CN=openhab.org, OU=None, O=None, L=None";
7979

8080
private Logger logger;
8181

0 commit comments

Comments
 (0)