0

I am looking for a way to read the CSR (#PKCS10 request) in java. Is there any API available OOTB with oracle jdk? I have a specific requirement NOT to use Bouncycastle or any other custom implementations

In other words, I am looking for an alternative for the below BC code snippet

PKCS10CertificationRequest request = new PKCS10CertificationRequest(csr);
request.getAttributes(...)

Update: Unfortunately sun.security.x509.PKCS10 is not the option since sun.* packages are not part of the supported, public interface.

Kedarnath
  • 260
  • 1
  • 3
  • 13
  • Sure, you could rewrite all the code in the bouncycastle PKCS10 implementation yourself. There's certainly nothing like the above line of code in the Java runtime libraries. – President James K. Polk Nov 12 '22 at 13:06

0 Answers0