Take the 2-minute tour ×
Cryptography Stack Exchange is a question and answer site for software developers, mathematicians and others interested in cryptography. It's 100% free, no registration required.

I want to store 5-10 lines of Text Info in a PKI Certificate. All I want is that when using common tools like openssl command line or certutil from Microsoft, this text info should be displayed as is.

Is there some field in a PKI certificate which I can use for this purpose?

I found that I can use nsComments for this purpose, but from reading the docs, it's not clear as to what's the limit of characters I can store here as per the standards. Also the name of the field nsComments (netscape comments) is a little confusing. A more non-specific name would help but if there is no other alternative, I am thinking of using it - if I can find the max length.

share|improve this question
2  
This is off topic, but the most common acceptable way would be for the issuer to include the text in the Subject name of the issued certificate. The "right" way, however, is to add a Certificate Policies extension, and add a link to a web site with the information you want to associate with the certificate. –  Henrick Hellström Mar 27 at 11:27
    
You are probably aware of this already, bu the nsComments extension is also deprecated according to the OpenSSL docs: "The following extensions are non standard, Netscape specific and largely obsolete. Their use in new applications is discouraged." –  hakoja Mar 31 at 18:52
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.