Implement SSL certificate validation through the JKS.

Change-Id: I05a845ab2097b3c27b0a2edf199f1c1459da8e83