Oracle Community Directory
Oracle Community FAQ
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
on Jan 10, 2012 12:28 AM by handat
How to issue certificate to an entity with custom DN/OID?
Jan 6, 2012 9:11 PM
In our application we generate certificates for internal entities like platform and user. Our internal entities are identified by custom DNs:
* Platform DN: p=platformName
* User DN: cn=userName,p=platformName
We tried to generate X.509 certificate for platform or user with BouncyCastle library:
X509Principal subject = new X509Principal(new
However, it does not accept/recognize keyword "P" or require certain keywords like "CN" in certificate subject DN:
java.lang.IllegalArgumentException: improperly specified input name: p=platformName
In openssl this problem requires introducing new OIDs for DN attributes.
How to issue certificate to an entity with custom DN format?
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: How to issue certificate to an entity with custom DN/OID?
Jan 10, 2012 12:28 AM
in response to
Have a look at X509Name, the parent class of X509Principal. You can specify your own vectors of OIDs.