Comments (4)
Hi,
this sounds like a general issue in setting up self-signed certificates in Java context. Make sure that the JRE/JDK you are using has imported the self-signed p12 certificate into its cacerts file by running keytool:
keytool -v -importkeystore -srckeystore localhost-ssl.p12 -srcstoretype PKCS12 -destkeystore "<path to your jdk/jre>/lib/security/cacerts" -deststoretype JKS
Cheers,
SteKoe
from spring-boot-admin.
Hi @SteKoe ,
I have imported the self-signed p12 certificate into its cacerts file. But his also, doesn't resolved the issue and now throwing warning
[2024-03-21 12:58:43.843] [,] [WARN ] [ 153] [ApplicationRegistrator ]: Failed to register application as Application(name=sample-service, managementUrl=https://127.0.0.1:8080/sample/actuator, healthUrl=https://127.0.0.1:8080/sample/actuator/health, serviceUrl=https://127.0.0.1:8080/sample) at spring-boot-admin ([https://localhost:1234/instances]): I/O error on POST request for "https://localhost:1234/instances": Certificate for doesn't match any of the subject alternative names: []; nested exception is javax.net.ssl.SSLPeerUnverifiedException: Certificate for doesn't match any of the subject alternative names: []. Further attempts are logged on DEBUG level
from spring-boot-admin.
@pSinghDelaplex as you have self signed certificates, they are not trusted by default. So your spring boot admin server needs to trust the certificate of your application and your application needs to trust the certificate of your spring boot admin server.
That is why you needed to import them. If you import them into your jre, then all applications running on that jre will trust these certificates. So now you find a valid path to the certificate.
But your certificates do not match the host you are using them for. You could try to generate certificates that match your hosts. Otherwise, the validation can be disabled in http clients, but this would not be recommended for production systems!
from spring-boot-admin.
As this is completely unrelated to Spring Boot Admin we will close this issue now. If you have more questions regarding that topic we recommend asking on stackoverflow or research in the docs.
from spring-boot-admin.
Related Issues (20)
- Missing applicationversion in applicationlist HOT 2
- Filter-Input is lost after selecting an application HOT 1
- White screen when route with traefik HOT 4
- Memory leak HOT 2
- Consuming High CPU in 3.2.1 HOT 4
- Session-list detail page 'Created At' and 'Last Accessed At' show incorrectly with spring 2.24 HOT 2
- How to use vue-rx with spring boot admin and Vue3? Error: " vue-rx.esm.js:310 Uncaught TypeError: Vue.use is not a function" HOT 1
- default-timeout is ignored HOT 3
- search filter in spring-boot-admin wallboard is missing values HOT 2
- Getting Health data from InstanceRegistry to add custom mail. HOT 1
- Adding dynamic data in custom mail HOT 3
- Based on nacos monitoring, the service has a content-path path, resulting in the failure to access the correct address. HOT 2
- Memory Charts Don't Use Configuration for Poll Timer Setup
- Documentation 404. HOT 2
- Better support removing defunct k8s pods. HOT 5
- documentation: Application main class in getting-started.html HOT 3
- New UI in 3.x?? HOT 3
- "spring.boot.admin.ui.poll-timer.logfile" is broken in version 3.2.3 HOT 3
- SpringBootAdminClientAutoConfiguration required a single bean, but 2 were found HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot-admin.