I am using Liberty 16.0.0.4 and i want to get image from facebook account image so i ran this next command to add facebook certificate to Liberty server
keytool -importcert -keystore /pathToServer/Servers/'03- Liberty 16.0.0.4'/wlp/usr/servers/MyProjectServer/resources/key.jks -file facebook.crt -alias facebooksigner
and the certificate successfully added to liberty key.jks file and i see it when list certificates on this file.
But my problem when i try to get image using URL url = new URL(pictureUrl);
it fires
[ERROR ] CWPKI0022E: SSL HANDSHAKE FAILURE: A signer with SubjectDN CN=*.facebook.com, O="Facebook, Inc.", L=Menlo Park, ST=California, C=US was sent from the target host.
Note: i added <keyStore id="defaultKeyStore" password="{xor}EzY9Oi0rJg=="/>
into server.xml
So can u guess why this happen? thanks :)