Standalone HTTPS with Jetty doesn't work with certificate alias

Description

According to opennms.properties and wiki page https://wiki.opennms.org/wiki/Standalone_HTTPS_with_Jetty, all you need to do if you want to use a specific cert alias in the keystore with jetty is set the system property org.opennms.netmgt.jetty.https-cert-alias.

Unfortunately, this doesn't work since the default jetty.xml does not set the certAlias for the SslContextFactory.

Adding this to the <New class="...SslContextFactory"> in jetty.xml fixes it.

<Set name="certAlias"><SystemProperty name="org.opennms.netmgt.jetty.https-cert-alias" /></Set>

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Ron Roskens February 28, 2017 at 5:30 PM

Fixed

Details

Assignee

Reporter

Affects versions

Priority

PagerDuty

Created February 6, 2017 at 3:46 PM
Updated March 1, 2017 at 2:28 PM
Resolved March 1, 2017 at 9:29 AM