Creating Testing Certificate and asociated Keystore
843811Apr 22 2005 — edited Apr 22 2005Hi... 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.