TLS support in Spring auto configuration
See original GitHub issueSpring Boot Configuration
server:
port: 9411
ssl:
enabled: true
key-alias: "host.name.com"
key-store: "keystore.jks"
key-store-password: "changeme"
trust-store: "truststore.jks"
trust-store-password: "changeme"
armeria:
ports:
- port: 9411
protocol: HTTPS
Exception raised
Caused by: java.lang.IllegalArgumentException: TLS not configured; cannot serve HTTPS
at com.linecorp.armeria.server.ServerBuilder.build(ServerBuilder.java:1340) ~[armeria-0.80.0.jar!/:?]
at com.linecorp.armeria.spring.ArmeriaAutoConfiguration.armeriaServer(ArmeriaAutoConfiguration.java:113) ~[armeria-spring-boot-autoconfigure-0.80.0.jar!/:?]
at com.linecorp.armeria.spring.ArmeriaAutoConfiguration$$EnhancerBySpringCGLIB$$2f3f223e.CGLIB$armeriaServer$0(<generated>) ~[armeria-spring-boot-autoconfigure-0.80.0.jar!/:?]
at com.linecorp.armeria.spring.ArmeriaAutoConfiguration$$EnhancerBySpringCGLIB$$2f3f223e$$FastClassBySpringCGLIB$$b07f737b.invoke(<generated>) ~[armeria-spring-boot-autoconfigure-0.80.0.jar!/:?]
There is a TODO https://github.com/line/armeria/blob/armeria-0.80.0/spring/boot-autoconfigure/src/main/java/com/linecorp/armeria/spring/ArmeriaSettings.java#L43
Version: 0.80.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
TLS Setup in Spring - Baeldung
When configuring the SSL protocol, we'll use TLS and tell the server to use TLS 1.2: # SSL protocol to use server.ssl.protocol=TLS #...
Read more >How to Secure a Spring Boot Application with TLS - Medium
We have added the TLS configuration in Spring boot and the application is ready to run in HTTPS. Open Postman/Browser and hit the...
Read more >How do you enable TLS 1.2 on Spring-boot? - Stack Overflow
I am trying to enable TLS 1.2 on Tomcat on Spring-boot 1.2.1. Android 5.0 is failing to connect to the default SSL settings, ......
Read more >Appendix A. Common application properties - Spring
This section provides a list common Spring Boot properties and references to the underlying classes that consume them. [Note], Note. Property contributions can ......
Read more >[Solved]-How do you enable TLS 1.2 on Spring-boot?
You may experience an SSL handshake error due to the default ciphers that spring boot includes. It is recommended that you define a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
/cc @imasahiro 😉
Works great, thanks @imasahiro