Skip to main content

importcert.py

Register a CA certificate with an operating system using the importcert.py script in FairCom Certificate Manager

Abstract

register a CA certificate with an operating system using the importcert.py script in FairCom certificate manager

This script imports your internal CA certificate into the keystore on Windows, Linux, or MacOS. This allows a computer to trust the certificates you create with the CA certificate. Use administrator privileges to run this script locally on each computer. For Linux and MacOS, prepend the command with sudo.

Easy

Copy the CA certificate and the Python script importcert.py to a computer. Run the script without command-line arguments, and it will prompt you for the following information:

  • Location of the CA certificate

Welcome to FairCom's Certificate Import Utility
For help, run this program with the '-h' option.
Enter the location of an x509 CA certificate (or 'x' to exit): __________

Press ENTER to proceed.
Press x, to exit without any changes.

root "Trusted Root Certification Authorities"
Signature matches Public Key
Certificate "FairCom Private Certificate Authority" added to store.
CertUtil: -addstore command completed successfully.

Press ENTER to exit

Advanced

Run the Python script importcert.py with the file path of your desired certificate as the command-line parameter:

python importcert.py C:\ExampleFilePath

Command-line options

Welcome to FairCom's Certificate Import Utility

This program optionally takes one parameter: the full path to the certificate file to import.
For example:
  python importcert.py /certificates/ca.crt