Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating Testing Certificate and asociated Keystore

843811Apr 22 2005 — edited Apr 22 2005
Hi... I wrote a program that signs a document using a .cer file (X509Certificate) and a .pfx or .jks Keystore (JKS or PKCS12 keystore). I need both files in order to sign a document.

When I validate... it tells me that my signature is ok (correct hash value), but my certificate has expired (It was a test certificate that is not longer valid).

Question: how can I create a testing X.509 Certificate and the corresponding KeyStore (JKS or PKCS12)??

I've tried with makecert.exe (from Microsoft) and I've got my .cer file... but I haven't been able to get the KeyStore.

I know how to make a keystore (using keytool), but I don't know how to relate my certificate and keystore (I've only been able to make them separatelly).

I hope some of you guys can help me with this... Thanks anyway!
Juan Ignacio.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 20 2005
Added on Apr 22 2005
1 comment
215 views