Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #178 from davco01a/latest
Browse files Browse the repository at this point in the history
TLS Support
  • Loading branch information
s1cyan authored Apr 28, 2020
2 parents 4d72a2d + ae86948 commit 358904a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ LABEL vendor="Kabanero" \
summary="Image for Kabanero CLI Service" \
description="This image contains the service for the Kabanero CLI. See https://github.com/kabanero-io/kabanero-command-line-services/"


ENV SEC_TLS_TRUSTDEFAULTCERTS=true
# The licence must be here for Redhat container certification
COPY LICENSE /licenses/

Expand Down
2 changes: 1 addition & 1 deletion src/main/liberty/config/keystore.xml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<server description="Default Server"><keyStore id="defaultKeyStore" password="keyspass" /></server>
<server description="Default Server"><keyStore id="defaultKeyStore" password="changeit" /></server>
9 changes: 5 additions & 4 deletions src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@



<sslDefault sslRef="kabSSLConfig"/>
<ssl id="kabSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="validationKeystore"/>
<keyStore id="defaultKeyStore" />
<keyStore id="validationKeystore" location="${server.config.dir}/resources/security/cacerts" type="jks" />
<keyStore id="defaultKeyStore"
password="changeit"
location="/etc/tls/secrets/java.io/kabanero.cli/keystores/keystore.p12"
type="PKCS12"/>
<ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustDefaultCerts="true" sslProtocol="TLSv1.2"/>

<!-- this will be the issuer of the jwts -->
<variable name="jwt.issuer" defaultValue="https://kabasec.com" />
Expand Down

0 comments on commit 358904a

Please sign in to comment.