Create cacerts.pem
The cacerts.pem file is a bundle of CA certs including the leaf, intermediate, and root certificates for your tenant. You can create the this bundle using a browser and a text editor. Note that any certificates shown in the procedure below are examples; your tenant might use different certificates.
- Open your tenant in the browser.
For example 'https://tenant.my.centrify.net' in Firefox. - Click on the browser's lock icon located to the left side of the URL.
- Click on the arrow > then More Information to view Security information.
- Click View Certificate.
- Click the Details tab in the Certificate Viewer to view the certificate hierarchy.
Note
The following certificates are examples. Your tenant might use different certificates.
Certificate type | Certificate example |
---|---|
Leaf certificate | *.my.centrify.net Note: The leaf certificate must match the portal FQDN. For example *.my.centrify.net for SaaS or the correct custom URL for the customer managed installation. |
Intermediate certificate | DigiCert SHA2 Secure Server CA |
Root certificate | DigiCert Global Root CA |
- Select each certificate, then click Export... to save the files in .crt format.
- Open the leaf certificate in a text editor and save it as 'cacerts_.pem' in the root directory of the script, replacing '' with the name of your Centrify tenant.
The root path of the script is where theCentrifyAWSCLI.py
file exists. - Open the intermediate certificate (For example:
-centrifycom.crt
), then copy the contents and paste it as text after the leaf certificate content in the 'cacerts_.pem' file. - Open the root certificate, then copy the contents and paste it after the intermediate certificate content in the 'cacerts_.pem' file.
- The final 'cacerts_.pem' file should look similar to the following example.
Remember
The following example contents of a 'cacerts_.pem' file is only an example. Your tenant might use different certificates.
-----BEGIN CERTIFICATE-----
MIIFQzCCBCugAwIBAgIQCCbJtjAZY/4iNAlHmzgY2zANBgkqhkiG9w0BAQsFADBN
MQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMScwJQYDVQQDEx5E
aWdpQ2VydCBTSEEyIFNlY3VyZSBTZXJ2ZXIgQ0EwHhcNMTcwOTI3MDAwMDAwWhcN
MjAxMDAxMTIwMDAwWjCBgDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3Ju
aWExFDASBgNVBAcTC1NhbnRhIENsYXJhMR0wGwYDVQQKExRDZW50cmlmeSBDb3Jw
b3JhdGlvbjELMAkGA1UECxMCS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