Skip to main content

Install Certificate - MacWindows Param

Summary

This script installs the certificate to a defined certificate location on Windows and MAC machines. If no particular location is defined, it will import the certificate at the root location of the machine and apply it to the entire system.

Provide the direct download URL for the certificate in the User parameter, and it will install the certificate.

Sample Run

Below is an example of how to add the certificate to My repository on a Windows machine and to the system's trusted root certificates keychain on MAC machines.

Sample Run

User Parameter

NameRequiredDescription
DownloadURLTrueDirect download URL of the certificate. Something like this: https://labtech.provaltech.com/Labtech/Transfer/software/certficates/DNSFilter.cer
WinCertStoreLocationFalseA particular certificate store on a Windows system to import the certificate. It could be something like Cert://CurrentUser//Root, Cert://LocalMachine//My, etc. If nothing is mentioned in the parameter, it will use the default store location, i.e., Cert://LocalMachine//Root.
MACCertStoreLocationFalseParticular keychain to import a certificate on a MAC machine. It could be something like /System/Library/Keychains/SystemRootCertificates.keychain, /Users/YourUsername/Library/Keychains/login.keychain, etc. If nothing is mentioned in the parameter, it will use the default system-wide keychain, applying trusted root certificates to the entire system, i.e., /Library/Keychains/System.keychain.

Output

  • Script log

NOTE: This script will work for .crt, .cer, and .cert extensions only.

The download URL should be something like:
https://labtech.provaltech.com/Labtech/Transfer/software/certficates/DNSFilter.cer