Skip to content

Instantly share code, notes, and snippets.

@elviejokike
Last active June 5, 2019 23:35
Show Gist options
  • Save elviejokike/46845544b8df354e396fe820f5386056 to your computer and use it in GitHub Desktop.
Save elviejokike/46845544b8df354e396fe820f5386056 to your computer and use it in GitHub Desktop.
The following properties are necessary for configuring Spring Zuul Proxy with SSL
Create a self signed certificate
keytool -genkey -keyalg RSA -alias selfsigned -keystore keystore.jks -storepass digilabs -validity 360 -keysize 2048
Place the keystore.jks in the resources folder of your application.
server:
ssl:
enabled: true
key-store: classpath:keystore.jks
key-store-password: *****
key-alias: selfsigned
keyStoreType: JKS
ribbon:
IsSecure: true
TrustStore: classpath:keystore.jks
TrustStorePassword : *****
eureka:
instance:
nonSecurePortEnabled: false
securePortEnabled: true
securePort: ${server.port}
.....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment