# Converting SSL certificates to Java KeyStore

## Before you begin

* You have a service configured with SSL available to call.
* You have a valid JDK installation with Java keytool available.
* You have an SSL Certificate file named ServerCertificate.cer, for example.
* You have a certificate provided by your web service provider from server trust named ClientAuth.pfx, for example.

## Procedure

1. Run the following code to generate a keystore named webservice.jks from ServerCertificate.cer.

   keytool -importcert -keystore webservice.jks -storepass talend -alias MYSERVER.talend.com –file ServerCertificate.cer

   ![](https://help.qlik.com/talend/en-US/access-secure-services-with-studio-and-runtime/Resources/images/accessing_secure_services_using_talend_studio_and_talend_runtime_02.png)
2. Run the following command to convert ClientAuth.pfx into a JKS file named clientcert.jks.

   keytool -importkeystore -srckeystore ClientAuth.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks –deststoretype JKS

   ![](https://help.qlik.com/talend/en-US/access-secure-services-with-studio-and-runtime/Resources/images/accessing_secure_services_using_talend_studio_and_talend_runtime_03.png)