Hello everyone,
I've installed my map server on a different machine from my mainframe. The configuration seems fine, but I'm having a problem accessing the map, so I need some help.
########## Centreon Map server version ##########
INFO] ii centreon-map-engine 23.10.3-bullseye amd64 Centreon Map service under Spring Boot framework
########## System ##########
INFO] SELinux is not available
Unit firewalld.service could not be found.
OK] Firewall is disabled
INFO] Physical memory available on the server: 4013032 kb.
INFO] Number of CPU available on the server: 4 core(s)
########## Java ##########
OK] Java 17 installed
OK] Optimization found for JVM: JAVA_OPTS="-Xms512m -Xmx4G -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/centreon-map -Dmanagement.endpoints.enabled-by-default=false -Dmanagement.endpoint.health.enabled=true -Dmanagement.endpoint.metrics.enabled=true"
########## Database connection ##########
OK] Connection to centreon
OK] Connection to centreon_storage
OK] Connection to centreon_map
########## Security ##########
OK] Token signing key
########## Broker connection ##########
OK] Connection to x.x.100.10 5758 port
########## Authentication ##########
OK] Centreon Central authentication using user centreon_map
########## Protocol verification ##########
WARNING] Centreon Map server configured to use HTTP protocol
INFO] Centreon Central configured in Map to use https protocol.
OK] Centreon Central successfully answered to HTTPS request
Centreon :
Centron-Map-engine.log
$ cat /var/log/centreon-map/centreon-map-engine.logCaused by: org.springframework.web.client.ResourceAccessException: I/O error on POST request for "https://x.x.100.10/centreon/api/latest/login": Certificate for <x.x.100.10> doesn't match any of the subject alternative names: :centreon-new.x.x.x, centreon.super.x.x]; nested exception is javax.net.ssl.SSLPeerUnverifiedException: Certificate for <x.x.100.10> doesn't match any of the subject alternative names: :centreon-new.x.x, centreon.super.x.x]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:791)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:717)
at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:474)
at com.centreon.map.server.service.security.AuthenticationService.authenticate(AuthenticationService.java:96)
at com.centreon.map.server.service.security.AuthenticationService.authenticate(AuthenticationService.java:63)
at com.centreon.map.server.service.security.AuthenticationService$$FastClassBySpringCGLIB$$bc5d9fba.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:793)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:763)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:708)
at com.centreon.map.server.service.security.AuthenticationService$$EnhancerBySpringCGLIB$$4118d22.authenticate(<generated>)
at com.centreon.map.server.service.license.LicenseVerificationService.lambda$refreshLicense$0(LicenseVerificationService.java:133)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
... 3 common frames omitted
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Certificate for <x.x.100.10> doesn't match any of the subject alternative names: :centreon-new.x.x, centreon.super.x.x]
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:507)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:437)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:87)
at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48)
at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:66)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:782)
... 22 common frames omitted