
hello, i need help making secure web sevice using MCS (mutual certificate security). I use Glassfish 3.0.1 server. I dont wont to use glassfish keystore and truststore, i wont to use mine. So i made server and client keystore and truststore using this commands:
keytool -genkeypair -alias kljuc_server -keyalg RSA -validity 7 -keystore keystoreS.jks // making server keys keytool -genkeypair -alias kljuc_klijent -keyalg RSA -validity 7 -keystore keystoreC.jks // making client keys keytool -export -alias kljucserver -keystore keystoreS.jks -rfc -file ifcertifikat.cer // making server certificate keytool -export -alias kljucklijent -keystore keystoreC.jks -rfc -file iccertifikat.cer // making client certificate keytool -import -alias kljucserver -file ifcertifikat.cer -keystore truststoreC.jks // puting server certificate to client truststore keytool -import -alias kljucklijent -file iccertifikat.cer -keystore truststoreS.jks // puting client certificate to server truststore
then i change secure properties in web service and web service client to point to mine keystore and truststore: web service properties: keystore -> keystoreS.jks (alias -> kljuc_server) truststore -> truststoreS.jks (alias disabled, i cant set it) web service client properties: keystore -> keystoreC.jks (alias -> kljuc_klijent) truststore -> truststoreC.jks (alias -> kljuc_server)
when i run jsp on client application i get this error:
SEVERE: WSS1533: Validation of self signed certificate failed. SEVERE: WSITPVD0035: Error in Verifying Security in Inbound Message.
what else should i do?
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.