Managing private key agents
Updating private key agents
Update to a new agent version
Due to incompatibility between private key agent version 2.0
and earlier versions, updating from earlier versions requires a new installation.
To ensure a seamless transition to the new agent, we recommend the following steps:
-
In SCM, navigate to the Private Key Agent page and verify that the agent is connected and showing the correct version.
Available for private key agent version 2.0 and later.
|
-
Log in to SCM.
-
From the left-hand menu, select About.
-
In the Private Key Agent Version row, click the Download Private Key Agent icon, and select Windows.
-
(Optional) If required, move the
Sectigo_Pk_Agent.exe
file to the install location of the existing private key agent. -
Right-click
Sectigo_Pk_Agent.exe
and click Install.The package automatically recognizes that there’s an existing version of the private key agent and initiates an update instead of a new install.
-
Read the EULA, select I agree to the license terms and conditions, and click Install.
-
Click Next.
-
Read the EULA, select I accept the terms in the License Agreement, and click Next.
-
Specify whether to keep or delete the existing files, and click Next.
-
(Optional) Specify an installation location.
-
Click Next, Install, Finish, and Close.
-
In SCM, navigate to the Private Key Agent page and verify that the agent is connected and showing the correct version.
Available for private key agent version 2.0 and later.
|
-
Open the Windows command prompt.
-
In the command line, navigate to the download location of the bootstrap application.
The bootstrap application will download the Windows Installer package files (MSI) from https://dist.sectigo.com as necessary. If you’re using an HTTP proxy, ensure that your OS proxy settings have been configured to allow access to https://dist.sectigo.com. -
Run the installer.
.\Sectigo_Pk_Agent.exe
-
Read the EULA, select I agree to the license terms and conditions, and click Install.
-
Click Next.
-
Read the EULA, select I accept the terms in the License Agreement, and click Next.
-
(Optional) Specify an installation location.
-
Click Next, Install, and Close.
-
In SCM, navigate to the Private Key Agents page and verify that the agent is connected and showing the correct version.
Available for private key agent version 2.0 and later.
|
-
Log in to SCM.
-
From the left-hand menu, select About.
-
In the Private Key Agent Version row, click the Download Private Key Agent icon, and select Linux Self-Extracting.
-
(Optional) If required, move the
sectigo-pk-agent.bin
file to the install location of the existing private key agent. -
Give execute permission to the installer binary.
chmod +x sectigo-pk-agent.bin
-
Run the installer.
sudo ./sectigo-pk-agent.bin -- --upgrade
-
In SCM, navigate to the Private Key Agent page and verify that the agent is connected and showing the correct version.
Update proxy server details
To update the proxy server information for your existing private key agent, do the following:
-
In a terminal, navigate to the private key agent install location.
-
Run the private key agent configuration utility.
pkagent.exe config interactive
-
Skip providing the installation token.
-
Configure proxy settings.
-
Specify whether you want to use proxy settings.
-
Complete proxy configuration based on the information provided in the following table.
Parameter Description Proxy URL
The hostname or IP address and port number used by your proxy server.
-
Host only —
host
-
Host and port —
host:port
Proxy User
The username for accessing the proxy server, if configured to use credentials.
Proxy Password
The password for accessing the proxy server, if configured to use credentials.
-
-
-
Skip changing the key storage provider.
-
Restart the private key agent.
sc stop SectigoPkAgent
sc start SectigoPkAgent
To update the proxy server information for your existing private key agent, do the following:
-
In a terminal, navigate to the private key agent install location.
-
Run the private key agent configuration utility.
sudo pkagent config interactive
-
Skip providing the installation token.
-
Configure proxy settings.
-
Specify whether you want to use proxy settings.
-
Complete proxy configuration based on the information provided in the following table.
Parameter Description Proxy URL
The hostname or IP address and port number used by your proxy server.
-
Host only —
host
-
Host and port —
host:port
Proxy User
The username for accessing the proxy server, if configured to use credentials.
Proxy Password
The password for accessing the proxy server, if configured to use credentials.
-
-
-
Skip changing the key storage provider.
-
Restart the private key agent service.
-
SysVinit
Linux:sudo service sectigo-pk-agent restart
-
systemd
Linux:sudo systemctl restart sectigo-pk-agent
-
To update the proxy server information for your existing private key agent, do the following:
-
In a terminal, navigate to the private key agent install location.
-
Run the private key agent configuration utility.
sudo pkagent config interactive
-
Skip providing the installation token.
-
Configure proxy settings.
-
Specify whether you want to use proxy settings.
-
Complete proxy configuration based on the information provided in the following table.
Parameter Description Proxy URL
The hostname or IP address and port number used by your proxy server.
-
Host only —
host
-
Host and port —
host:port
Proxy User
The username for accessing the proxy server, if configured to use credentials.
Proxy Password
The password for accessing the proxy server, if configured to use credentials.
-
-
-
Skip providing the installation token.
-
Restart the private key agent service.
-
SysVinit
Linux:sudo service sectigo-pk-agent restart
-
systemd
Linux:sudo systemctl restart sectigo-pk-agent
-
Configure a local SSL certificate replacement
The private key agent hosts the SSL endpoint to download private key files using a fixed certificate included in the installer. Alternatively, you can configure the private key agent to utilize your own SSL certificate to secure the certificate download site. As long as the certificate remains valid, this will prevent any SSL warnings when downloading private keys.
-
In a terminal, navigate to the private key agent install location.
-
Update the private key agent configuration.
pkagent.exe config --cert_path <pathToCertificate> --cert_file_password <certificatePassword>
The command options are outlined in the following table.
Option Description cert_path
The path to the
.p12
,.jks
, or.pem
(CERTIFICATE
block, andPRIVATE KEY
orENCRYPTED PRIVATE KEY
) certificate to be used in securing private key agent certificate downloads.cert_file_password
The password for the certificate.
-
Restart the private key agent.
sc stop SectigoPkAgent
sc start SectigoPkAgent
-
In a terminal, navigate to the private key agent install location.
-
Update the private key agent configuration.
sudo pkagent config --cert_path <pathToCertificate> --cert_file_password <certificatePassword>
The command options are outlined in the following table.
Option Description cert_path
The path to the
.p12
,.jks
, or.pem
(CERTIFICATE
block, andPRIVATE KEY
orENCRYPTED PRIVATE KEY
) certificate to be used in securing private key agent certificate downloads.cert_file_password
The password for the certificate.
-
Restart the private key agent service.
-
SysVinit
Linux:sudo service sectigo-pk-agent restart
-
systemd
Linux:sudo systemctl restart sectigo-pk-agent
-
Update certificate download naming convention
You can update the agent’s file naming convention for certificate downloads.
-
In a terminal, navigate to the private key agent install location.
-
Update the agent’s file naming convention for certificate downloads.
pkagent config --download_file_name <formatValue>
The command format values are outlined in the following table.
Value Description cert_{ID}.ext
The file will be saved with the ID of the certificate.
\{common name}.ext
The file will be saved with the common name of the certificate.
{subject}.ext
The file will be saved with the subject of the certificate.
-
Restart the private key agent.
sc stop SectigoPkAgent
sc start SectigoPkAgent
-
In a terminal, navigate to the private key agent install location.
-
Update the agent’s file naming convention for certificate downloads.
pkagent config --download_file_name <formatValue>
The command format values are outlined in the following table.
Value Description cert_{ID}.ext
The file will be saved with the ID of the certificate.
\{common name}.ext
The file will be saved with the common name of the certificate.
{subject}.ext
The file will be saved with the subject of the certificate.
-
Restart the private key agent service.
-
SysVinit
Linux:sudo service sectigo-pk-agent restart
-
systemd
Linux:sudo systemctl restart sectigo-pk-agent
-
Uninstall a private key agent
-
Navigate to
. -
Search for Sectigo Private Key Agent.
-
Select the Sectigo Private Key Agent and click Uninstall.
-
Click Uninstall.
-
Click Uninstall.
-
Click Close.
-
(Optional) Delete the files and logs associated with the private key agent.
-
Navigate to
C:\ProgramData\Sectigo
. -
Delete the
PK Agent
folder.This cannot be undone. When using Local key storage, you must back up or export your keys before deleting this file to prevent losing your private keys. Only delete this folder if you want to completely remove all files and logs related to the agent.
-
-
Stop the private key agent service.
sudo service sectigo-pk-agent stop
-
Navigate to the
/etc/init.d
directory. -
Delete the
sectigo-pk-agent
directory. -
Delete the private key agent installation files.
-
Navigate to the
/opt
directory. -
Delete the
sectigo-pk-agent
directory.
-
-
(Optional) Delete the files and logs associated with the private key agent.
-
Navigate to the
/var/opt
directory. -
Delete the
sectigo-pk-agent
directory.This cannot be undone. When using Local key storage, you must back up or export your keys before deleting this directory to prevent losing your private keys. Only delete this directory if you want to completely remove all files and logs related to the agent.
-
-
Remove the private key agent.
sudo apt remove sectigo-pk-agent
-
(Optional) Delete the files and logs associated with the private key agent.
-
Navigate to the
/var/opt
directory. -
Delete the
sectigo-pk-agent
directory.This cannot be undone. When using Local key storage, you must back up or export your keys before deleting this directory to prevent losing your private keys. Only delete this directory if you want to completely remove all files and logs related to the agent.
-
-
Remove the private key agent.
sudo dnf remove sectigo-pk-agent+
-
(Optional) Delete the files and logs associated with the private key agent.
-
Navigate to the
/var/opt
directory. -
Delete the
sectigo-pk-agent
directory.This cannot be undone. When using Local key storage, you must back up or export your keys before deleting this directory to prevent losing your private keys. Only delete this directory if you want to completely remove all files and logs related to the agent.
-
Private key agent service commands
Command | Description |
---|---|
Start |
Start a private key agent:
|
Stop |
Stop a private key agent:
|
Query |
Query the status of a private key agent:
|
Command | Description |
---|---|
Start |
Start a private key agent:
|
Stop |
Stop a private key agent:
|
Restart |
Restart a private agent:
|
Status |
Query the status of a private key agent:
|
Command | Description |
---|---|
Start |
Start a private key agent:
|
Stop |
Stop a private key agent:
|
Restart |
Restart a private key agent:
|
Status |
Query the status of a private key agent:
|