--
You received this message because you are subscribed to a topic in the Google Groups "reCAPTCHA" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/recaptcha/xC3OWE5gdpU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to recaptcha+...@googlegroups.com.
To post to this group, send email to reca...@googlegroups.com.
Visit this group at http://groups.google.com/group/recaptcha.
For more options, visit https://groups.google.com/d/optout.
This may be a little late, but will be useful for anyone facing similar issues.
In order to resolve the SSL Handshake exception when using recaptcha, follow the below steps.
1. Navigate to your JAVA\JRE\lib\security folder.
2. Get the google certificate hierarchy from the internet using keytool as below and store it in a file called recaptcha.pem.
Note: You cannot use the browser directly as it is disabled in modern browsers.
JAVA_HOME\jre1.8.0_91\lib\security> keytool -printcert -rfc -sslserver www.google.com/recaptcha/api/siteverify > recaptcha.pem
3. You can verify if the certificate is imported properly by issuing the type command.
JAVA_HOME\jre1.8.0_91\lib\security>type recaptcha.pem
4. Import the downloaded certificate to your JRE certificate store using the command below:
JAVA_HOME\jre1.8.0_91\lib\security> keytool -importcert -file ./recaptcha.pem –keystore cacerts
When prompted for the keystore password, please enter “changeit”. It is the default password.
When prompted for Trust this Certification, type “Y”
The above steps will ensure that the certificate is imported in your JRE and enable SSL Handshake between the servers.