Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wanna generate a certificate with the _certificate policy_ exntension. The _certificate policy_ extension has two components: _policy identifier_ and _userNotice qualifier_ (_noticeRef_ and _explicitText_). Now the problem is how to the _userNotice qualifier_ using _sun.security_ of Java.

What I have tried:

I tried the following code:

PolicyQualifierInfo policyQualifierInfo1=new PolicyQualifierInfo(byte[] encoded);


But I do not know the meaning of _byte[] encoded_. Can someone give me a code example to explain how to generate _policy identifier_?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900