The IoT Gateway Plug-in supports the use of self-signed certificates with the MQTT and REST clients. These agents use the Microsoft Windows, computer-level, trusted certificate store to keep track of these certificates. By using this store, most recognized certificate authorities are already approved. To import a certificate, use the below instructions.
Note: More complete instructions are available in the product manual and online help file.
Command Line Steps
- From the Start menu, select All Programs.
- Choose Accessories then right-click on Command Prompt and select Run as Administrator from the menu.
- In the command prompt window, navigate to the location of the certificate.
- Enter the command: certutil -addstore "Root" <CertificateName> where the <CertificateName> is the name of the .cer or .crt file.
- Press Enter to execute the command.
- Verify the import is complete when several lines of output appear ending with: CertUtil: -addstore command completed successfully.
Windows Console Steps
- From the Start menu, select All Programs.
- Choose Accessories| Run.
- In the Run box, type "mmc" and click OK.
- In the console window, choose File | Add/Remove Snap-in
- Select Certificates on the left and click Add.
- Select Computer account and then click Next >.
- Select Local Computer and click Finish.
- Back in the Add or Remove Snap-ins window, click OK.
- Verify there is a Certificates (Local Computer) listing in the Console window.
- Expand the Certificates listing, then expand Trusted Root Certification Authorities.
- Click on Certificates and verify a listing of all the Root certificates appears.
- Locate the self-signed certificate to import for the MQTT and REST client.
- Right-click on Certificates and select All Tasks | Import
- In the Certificate Import wizard, click Next on the initial page.
- Click Browse... to locate and select the certificate to import and click Next >.
- Verify that Place all Certificates in the following store is selected and that store is the Trusted Root Certification Authorities and click Next >.
- On the final page of the wizard, click Finish.
- In the a pop-up message that the import was successful, click OK.
- Close the Console window.