In our application, we create certificates for internal objects such as the platform and the user. Our internal objects are identified by custom DNs:
- Platform DN: p = file_name
- User DN: cn = username, p = file_name
We tried to generate an X.509 certificate for a platform or user using such popular tools as openssl, keytool, implementation of javax.security (BouncyCastle), for example:
keytool -genkey -dname "p=platformName" -alias platformName
However, these tools do not accept / recognize the keyword "P" or require specific keywords, such as "CN" in the DN of the certificate object.
How to issue an entity certificate with a custom DN format?
Note. We do not need DNs containing standard keywords (CN, OU, etc.), since all certificates will be used for internal use of our products (will not be verified by third parties or included in the certificate chain).
source
share