question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TLS support in Spring auto configuration

See original GitHub issue

Spring 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:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
trustincommented, Mar 18, 2019

/cc @imasahiro 😉

0reactions
gquintanacommented, Apr 11, 2019

Works great, thanks @imasahiro

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found