Spring 5.0, doesn't support
Java SSL. So using Reactor Netty SSLContext.
Want to use one-way communication (Server-side authentication).
Created KeyStore and TrustStore using Java KeyTool.
KeyManagerFactory keyManagerFactory=null;
KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
InputStream readStream = new FileInputStream("serverkeystore.p12");
ks.load(readStream, pass.toCharArray());
readStream.close();
keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
keyManagerFactory.init(ks, "pass".toCharArray());
Setting in WebClient request, getting below exception ?.
Exception
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Can you help with examples and pointers ?.