Thanks, but the server is not using a test certificate.
Main Topics
Browse All TopicsHi experts,
Java newbie here. Trying to do a POST to a https://
I get:
sun.security.validator.Val
It's a Verisign cert which should be included in Java shouldn't it? I shouldn't need to import a certificate or sign anything etc?
The error occurs when writing to the output stream.
I really need step-by-step help.
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Nonetheless, it might *not* be in your keystore as you expect. You can import it though:
http://technojeeves.com/jo
it should be there
use the following to check the keystore
keytool -list -storepass changeit -noprompt -keystore blah/jre/lib/security/cace
if its not there first check u are using the correct keystore and then try this code
http://www.objects.com.au/
let me know how you get on
there are 6/7 verisign ones there for all the jre's i can find (including the jdk/jre one)
i am not specifying a keystore, so presumably it will use the same one as your keytool command does above?
i am reluctant to try importing the cert since i don't really know what i'm doing and it seems as though i shouldn't have to. presumably this will mean i will have to include code to import the cert for every user - is this the normal way of doing things? i will of course do it if that is definitely my next step, just wanted to check first!
@CEHJ
I will definitely try the code if that's what I have to do. It seems I shouldn't have to do that which points to an error in my code/installation/environm
@objects
How do I check the public key?
The swing client app that I'm writing is using jre1.6u7 on Vista Business SP1 using NetBeans 6.1
This is what I see running InstallCert on the domain:
What does this indicate? That I shouldn't be receiving errors?
??
run-single:
Loading KeyStore C:\Program Files\Java\jdk1.6.0_07\jre
Opening connection to www.!!!.com:443...
Starting SSL handshake...
No errors, certificate is already trusted
Server sent 2 certificate(s):
1 Subject CN=www.!!!.com, OU="Member, VeriSign Trust Network", OU=Authenticated by VeriSign, OU=Terms of use at www.verisign.co.uk/rpa (c)05, OU=Website, O=!!!, L=London, ST=London, C=GB
Issuer CN=VeriSign Class 3 Secure Server CA, OU=Terms of use at https://www.verisign.com/r
sha1 a0 2e 12 2f 35 c9 d1 61 28 fb 92 71 dc a4 d8 49 54 79 38 51
md5 b4 0e 26 9e 21 92 b0 34 63 3e f7 c3 88 97 b6 11
2 Subject CN=VeriSign Class 3 Secure Server CA, OU=Terms of use at https://www.verisign.com/r
Issuer OU=Class 3 Public Primary Certification Authority, O="VeriSign, Inc.", C=US
sha1 18 85 90 e9 48 78 47 8e 33 b6 19 4e 59 fb bb 28 ff 08 88 d5
md5 2a c8 48 c0 85 f3 27 de 32 29 44 bb b0 2c 79 f8
Enter certificate to add to trusted keystore or 'q' to quit: [1]
> No errors, certificate is already trusted
appears to be already trusted. Double check against the certs you listed earlier
and here is some light reading for you :)
http://mindprod.com/jgloss
> Java or NetBeans?
up to them to determine just describe the scenario.
> I'm new to Java. Happy to do this but don't know how.
Have you tried recreating the compressed jar in nb and running again to see if the problem comes back.
Seems a strange bug so worth checking if something else didn't actually fix it and the uncompressing was a coincidence.
Business Accounts
Answer for Membership
by: CEHJPosted on 2008-07-31 at 03:35:16ID: 22128398
See following:
ad/3018
http://wso2.org/forum/thre