# Error in RPA creation due to untrusted certificate solved

**URL:** <https://community.sapphireims.com/t/error-in-rpa-creation-due-to-untrusted-certificate-solved/658>\
**Category:** Robotic Process Automation (RPA)\
**Tags:** how-to, issue\
**Created:** [June 10, 2021, 8:17am UTC](https://community.sapphireims.com/t/error-in-rpa-creation-due-to-untrusted-certificate-solved/658 "2021-06-10T08:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![farhan](https://avatars.discourse-cdn.com/v4/letter/f/b2d939/32.png) [@farhan](https://community.sapphireims.com/u/farhan)\
**Post date:** [June 10, 2021, 8:17am UTC](https://community.sapphireims.com/t/error-in-rpa-creation-due-to-untrusted-certificate-solved/658/1 "2021-06-10T08:17:00Z")

</div>

If you are facing the below issues while creating a RPA BPMN or RPA Add on, Please follow the steps below,

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/sapphireims/original/1X/a78300c9fe402816c84cddf6248beb05a672bbea.png)

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/sapphireims/original/1X/415fd0ea35fcdc9f2e37b0051055cab95d85ee24.png)

**Steps to Install or Import certificate as a trusted certificate in JDK**

If the SSL is already enabled in SapphireIMS then export the certificate in **.cer** format by following the below steps:

1. Open SapphireIMS/HxC URL in a browser where the certificate is enabled (valid one)  
 ![image](https://europe1.discourse-cdn.com/flex005/uploads/sapphireims/original/1X/21866ecd3e044bdff83b2019a68c20758a4197ba.png)

2. Click on the lock icon of the URL in the browser as highlighted above

3. Click on **Certificate (Valid)**

4. Go to Details tab

5. Click on ‘Copy to File’

6. Click on Next and choose ‘Base-64 encoded X.509(.CER)’

7. Browse and save in desktop (Or any other desired location) \> provide name as **trustcer** \> click next \> click finish

8. **trustcer.cer** files will be created in desktop (Or the selected location), Copy the file and paste it in the below paths

Installed Drive:\SapphireIMS\WebManagement\JDK\jre\lib\security

And (above is for SapphireIMS and below is for RPA)

Installed Drive:\SapphireIMS\Plugins\SapphireIMSRPA\jdk\jre\lib\security

9a. **Installing or importing in JDK for SapphireIMS/HxC:**

Open CMD as Administrator and go to the below path

Installed Drive:\SapphireIMS\WebManagement\JDK\jre\lib\security

Run the below command

keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias mycertt -file trustcer.cer

**Ex:** D:\SapphireIMS\WebManagement\JDK\jre\lib\security\> keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias mycertt -file trustcer.cer

Note: You will get a response as ‘Certificate was added to keystore’

9b. **Installing or importing in JDK for RPA:**

Open CMD as Administrator and go to the above path

Installed Drive:\SapphireIMS\Plugins\SapphireIMSRPA\jdk\jre\lib\security

Run the below command

keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias mycertt -file trustcer.cer

**Ex:** D:\SapphireIMS\Plugins\SapphireIMSRPA\jdk\jre\lib\security\> keytool -import -trustcacerts -keystore cacerts -storepass changeit -noprompt -alias mycertt -file trustcer.cer

Note: You will get a response as ‘Certificate was added to keystore’

1. Restart SapphireIMS and RPA services.
