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.

How to configure spring boot admin to support SSL?

See original GitHub issue

In my case i have a spring boot application and i have configured it as admin-server and in the same time as starter-client.
So in one pom we have: <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-server-ui</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-client</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>org.jolokia</groupId> <artifactId>jolokia-core</artifactId> </dependency> and in application.property file: spring.boot.admin.url=http://xxx.xx.xx.xxx:8080 ... server.port=8080 *All works fine. *

Now i am trying to switch server to https:

spring.boot.admin.url=https://xxx.xx.xx.xxx:8443 … server.port=8443 server.ssl.enabled=true server.ssl.keyStore=keystore.jks server.ssl.trust-store=truststore.jks server.ssl.key-store-password=password server.ssl.keyStoreType=JKS server.ssl.keyAlias=user server.ssl.protocols=TLSv1,TLSv1.1,TLSv1.2,SSLv2Hello

Application starts. Admin UI site is available. But it seems that the client can’t communicate with the admin server:

Failed to register application as Application [id=null, name=spring-boot-application, managementUrl=https://xxx.xx.xx.xxx:8443, healthUrl=https://xxx.xx.xx.xxx:8443/health, serviceUrl=https://xxx.xx.xx.xxx:8443] at spring-boot-admin (https://xxx.xx.xx.xxx:8443/api/applications): I/O error on POST request for "https://xxx.xx.xx.xxx:8443/api/applications": java.security.cert.CertificateException: No subject alternative names matching IP address xxx.xx.xx.xxx found; nested exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address xxx.xx.xx.xxx found

Is any possibility to disable ssl verification on admin side? Or any other example or advice how to configure it?

Best Regards, Alexander.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7

github_iconTop GitHub Comments

12reactions
izeruicommented, Nov 23, 2018

server.use-forward-headers=true spring.boot.admin.ui.public-url=https://xxx.com

0reactions
wuzhefangcommented, Jan 6, 2021

server.use-forward-headers=true spring.boot.admin.ui.public-url=https://xxx.com

That’s what I need

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Boot Admin uses HTTP instead of HTTPS Actuator ...
Just install your cert into the JRE's cacert file using keytool. I would recommend enabling SSL debug logging while trying to get this...
Read more >
Spring Boot Admin Reference Guide - GitHub Pages
First, you need to setup your server. To do this just setup a simple boot project (using start.spring.io). As Spring Boot Admin Server...
Read more >
A Guide to Spring Boot Admin | Baeldung
In this article, we're going to describe steps for configuring a Spring Boot Admin server and how an application becomes a client.
Read more >
Spring Boot - Enabling HTTPS - Tutorialspoint
Configure HTTPS​​ You can create an executable JAR file, and run the spring boot application by using the following Maven or Gradle commands....
Read more >
Spring Boot Admin Server and Client Hello World Example
Next we create the SpringBoot Bootstrap class. Since using the Spring Boot Admin we will be accessing sensitive information, we will also be...
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