[java-idp-jetty-base] 02/02: JJETTY-6 Do not use IPv6 when generating certificate

Rod Widdowson rdw at steadingsoftware.com
Wed Oct 23 13:51:38 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch 12
in repository java-idp-jetty-base.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-jetty-base.git;a=commit;h=6f874c3aa9c8a3ff5a4a6212c399a5c4b8256404

commit 6f874c3aa9c8a3ff5a4a6212c399a5c4b8256404
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Oct 23 13:52:25 2024 +0100

    JJETTY-6 Do not use IPv6 when generating certificate
    
    https://shibboleth.atlassian.net/browse/JJETTY-6
    
    As an interim measure just put in "localhost"
---
 .../main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java b/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
index 1a5085b..12c63f7 100644
--- a/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
+++ b/jetty-base-impl/src/main/java/net/shibboleth/idp/plugin/jettybase/JettyBaseModule.java
@@ -92,7 +92,7 @@ public class JettyBaseModule extends PluginIdPModule {
         final SelfSignedCertificateGenerator generator = new SelfSignedCertificateGenerator();
         generator.setKeystoreFile(keyStore.toFile());
         generator.setKeySize(InstallerProperties.DEFAULT_KEY_SIZE);
-        final String hostName = InstallerSupport.getBestHostName();
+        final String hostName = "localhost";
         generator.setHostName(hostName);
         final String altName = "https://" + hostName + "/idp/shibboleth";
         generator.setURISubjectAltNames(CollectionSupport.singletonList(altName));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list