Using the BouncyCastle library, I need to include in the Subject a CSR request the following OID: 1.3.6.1.1.1.1.0 which corresponds to the > uidNumber . The subject I have it in the following way:
X500Principal subject = new X500Principal("CN=CNdePrueba,O=EntidadDePrueba,OU=OrganizacionPrueba,[email protected], UIDNumber=123456, UID=tipDocumentPrueba");
And the Exception is this:
Exception in thread "main" java.lang.IllegalArgumentException: improperly specified input name: CN=CNdePrueba,O=EntidadDePrueba,OU=OrganizacionPrueba,[email protected], UIDNumber=123456, UID=tipDocumentPrueba
The point is: how do I add that OID (1.3.6.1.1.1.1.0) so that the subject accepts it?