Skip to content

Instantly share code, notes, and snippets.

@ncknt
Created February 5, 2020 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ncknt/05d1250e4bb3e787a0f15167e2cc1314 to your computer and use it in GitHub Desktop.
Save ncknt/05d1250e4bb3e787a0f15167e2cc1314 to your computer and use it in GitHub Desktop.
# TLS only
# server:
# ssl:
# enabled: true
# # Identity of the server
# key-store: /path/to/server/java/server.p12"
# key-store-type: "PKCS12"
# key-alias: server
# key-store-password: <keystorepassword>
# mTLS with jks for truststore
server:
ssl:
enabled: true
# Identity of the server
key-store: /path/to/server/java/server.p12
key-store-type: PKCS12
key-alias: server
key-store-password: <keystorepassword>
# Who is trusted by the service, this will contain the root CA
trust-store: /path/to/ca/truststore.jks
trust-store-password: <truststorepassword>
client-auth: "need" # or want
ok-http-client:
# Contains the identity of the service
key-store: /path/to/server/java/server.p12
key-store-type: "PKCS12"
key-store-password: <keystorepassword>
# Contains the trust store
trust-store: /path/to/ca/truststore.jks
trust-store-type: JKS
trust-store-password: <truststorepassword>
tls-versions: ["TLSv1.2"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment