public static void loadX509Cert ( Certificate cert , String certAlias , KeyStore keyStore ) throws KeyStoreException { keyStore . setCertificateEntry ( certAlias , cert ) ; }
Load a certificate to a key store with a name