---
title: "exSsoSamlKeystore"
canonical: "https://help.agiloft.com/space/HELP/65242513/exSsoSamlKeystore"
format: markdown
---
The SAML XML that is exchanged between Agiloft and your IdP is signed, encrypted, and decrypted using a public certificate and private key pair in the Java Keystore (JKS). If you host your own Agiloft server, you may need to generate the necessary [PKCS 12](https://en.wikipedia.org/wiki/PKCS_12) file containing the key pair in order to complete the SAML SSO setup. You can follow the steps below to generate a PKCS 12 file from your CA certificate and corresponding private key and then add the file to the keystore. 

> 📝 If your KB is hosted by Agiloft, please [contact Support](https://www.agiloft.com/support-login.htm) to obtain keystore details for your server.

1. Copy the CA certificate and private key files onto the Agiloft server.
2. Log in to the server via SSH.
3. Create a PKCS 12 file using your private key and CA certificate. You can run the following OpenSSL command to create the PKCS 12 file:

> ℹ️ OpenSSL is not installed on Windows systems by default. You can find information about OpenSSL distributions for Windows [here](https://wiki.openssl.org/index.php/Binaries).

4. Add the PKCS 12 file to the keystore using the Keytool command. You can append the output file as either `.jks` or `.keystore`.
  1. When prompted, provide a new password for the destination file. Make a note of the password you use here.
  2. You may be prompted to provide an alias for the keystore. The default alias is 1.
5. On the Service Provider Details tab in the SAML Configuration wizard, enter the full path, password, and alias for the new file, as described in [Configure Service Provider Details](#service_provider).