I am using RSA 2048 with SHA 256 primitive in certificate:
How to verify the user certificate n + 1 with Root certificate n?
why it is required to perform Certificate chain verification?
How to generate a sample certificate in openssl?
- I have tried to generate the certificate in pem format,but i need the certificate in der format.
openssl req -x509 -newkey rsa:2048 -keyout keySample.pem -out sample.pem -days 365
so i have converted the format using below commands. openssl x509 -in sample.pem -outform der -out sample_cert.der
But when i try to parse the certificate with third party solution, unfortunately it returns not ok and the description of error says the parameter
We check whether the tag in the encoding can be ignored or, if not, whether the tag is the correct one for the subcomponent.
The tag cannot be ignored and it is not correct. The only chance we have is that the subcomponent is optional. Then we simply assume that the optional subcomponent does not exist.
where is the subcomponet and tag used in certificate? which field is this and resposible for which parameter?
- can someone generate the file(DER format) with two above commands from openssl and let me know if you can able to parse successfully?