I have an application (which I\'m testing), in which I create some services. The
ID: 658006 • Letter: I
Question
I have an application (which I'm testing), in which I create some services. These services are accessible via libraries i.e java and python apis. In order to authenticate the api calls, the application does gives me pkcs file.
I want to change the expiration date of the pkcs file, only for testing purposes.
I followed the steps that are defined over here, and found my certificate expiration date is Dec 2014, I just want to change that to say Jan 13 and see how my application behaves.
How should I do this in openssl?
Thanks in advance
Explanation / Answer
The expirationDate is part of your (signed) certificate, thus if you change it you invalidate the certificate. The proper way to test this case is to issue another certificate with the desired expirationDate from the CA that issued your certificate.
Alternatively (if you have the code to the application) just skip over the signature verification. Please do tell which crypto library your app uses ofr further information.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.