how to bypass the CertificateExpiredException exception?

A

Ahmed Moustafa

Hi All,

I have a test certificate why has already expired. Is there a way to
bypass the CertificateExpiredException exception?

Thanks in advance.
 
R

Roedy Green

All the test certificates, that apache creates, are already expired!

Try downloading the latest Apache. If that does not work, tell the
authors about the problem.
 
B

Brian Palmer

Ahmed Moustafa said:
All the test certificates, that apache creates, are already expired!

What are these certificates for? And how exactly are you creating
these certificates? By test certificate, do you mean self-signed
certificate, or is this using some CA's demo certificates?

Have you tried creating a self-signed certificate with openssl and
then configuring the apache (either apache-ssl or with mod_ssl) httpd
to use those certificates?
 
A

Ahmed Moustafa

I have a test certificate why has already expired. Is there a way to
create a new test certificate.

I have done that and passed the expired certificate issue. Now, I am
getting "javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found".

In a browser, I can accept such a certificate but how can I accept in Java?
 
B

Brian Palmer

Ahmed Moustafa said:
I have done that and passed the expired certificate issue. Now, I am
getting "javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate
found".


In a browser, I can accept such a certificate but how can I accept in Java?

You have to import the signing authority into your cacerts file

http://mindprod.com/jgloss/cacerts.html

(actually, I suspect you can get away with adding a keystore to your
java policy file, but if you have permission to add it to the cacerts
file, that's probably easier)
 
A

Ahmed Moustafa

I have a test certificate why has already expired. Is there a way
You have to import the signing authority into your cacerts file

http://mindprod.com/jgloss/cacerts.html

(actually, I suspect you can get away with adding a keystore to your
java policy file, but if you have permission to add it to the cacerts
file, that's probably easier)

Could you please tell me how I import it?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top