I have configured two eureka instances in same host Peer1: 127.0.0.1:8761 Peer2 : localhost:8762

and enabled SSL. Eureka clients are able to register to eureka over SSL Both Peers are not syncing the client instance details. Since both are in my local .I have created one certificate with below keytool -genkey -alias account -storetype JKS -keyalg RSA -keysize 2048 -keystore account.jks -validity 3650 -ext SAN=dns:ubs.com,dns:localhost,ip:127.0.0.1

Configured DiscoveryClientOptionalArgs on Eureka servers to point to the truststore and keystore. Also installed certs on JVM . But i receive below error : [ERROR] 2020-07-20 16:40:15.483 [DiscoveryClient-CacheRefreshExecutor-0] RedirectingEurekaHttpClient - Request execution error. endpoint=DefaultEndpoint{ serviceUrl='https://127.0.0.1:8761/eureka/} com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: Received fatal alert: bad_certificate

How to configure the eureka peers in the same host over SSL?