Facebook integration with AEM app - javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: KeyUsage does not allow key encipherment
Hi Folks,
Thanks in anticipation.
I am trying to establish a SSL connection (https://graph.facebook.com) from AEM JVM (jdk1.7) but it throws an following exception.
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: KeyUsage does not allow key encipherment
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
Caused by: sun.security.validator.ValidatorException: KeyUsage does not allow key encipherment
at sun.security.validator.EndEntityChecker.checkTLSServer(EndEntityChecker.java:264)
at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
Please note that I have downloaded the certificates (Root, intermediate certificates) and added to AEM JRE using "keytool" command but still I am getting above exception.
In Root and intermediate certificates we have "key usage" array contains following fields.
Digital signature, Certificate signing, Off-line CRL signing, CRL signing(86)
Please check and advise, your assistance is much appreciated.
Thanks & Regards,
Vinayak S