As i am trying to add support for RSASSA-PSS algorithm for SSL handshake. This algorithm is provided by SunRsaSign provider, whereas same algorithm is missing in SunJSSE provider which is used as default provider during SSL handshake in Java 8u252.
I am initialising SSL context as below
SSLContext ssl = SSLContext.getInstance("TLSv1.2");
I want to know how to add this algorithm to SSLContext/SSLSocket, so that certificate verification succeeds.
In latest Java-8 below are the available algorithms during SSL handshake. As we can see RSASSA-PSS algorithm is missing in supported algorithm list. Hence, handshake is failing
However, SSL handshake is happening in Java-11 as we have RSASSA-PSS algorithm in run-time. please note that in Java-11, RSASSA-PSS algorithm provided by 2 providers, SunJSSE & SunRsaSign.