Paramétrer une application personnalisée pour l’automatisation managée
L'automatisation managée de CertCentral est compatible nativement avec la plupart des serveurs Web les plus populaires.
CertCentral fournit également la flexibilité d'étendre la gestion des certificats à d'autres applications non prises en charge nativement, en permettant de configurer des clients ACME tiers via l’option « application personnalisée ».
Pour activer l'automatisation managée pour une application personnalisée, suivez les étapes suivantes :
Custom automations require an active DigiCert agent on the server. The agent coordinates automation requests received from the Trust Lifecycle Manager web console and calls your custom shell script to handle certificate lifecycle events for the custom application.
For detailed instructions about how to install and activate DigiCert agents on your servers, see Deploy and manage agents.
In addition to a DigiCert agent, the server must have Certbot installed. Your custom automation script invokes the Certbot ACME client to request certificates from Trust Lifecycle Manager and install them for your custom Linux or Windows application.
For detailed instructions about how to download and install the Certbot client, refer to the official Certbot instructions.
You need a shell script to drive certificate lifecycle events for your custom application. When a new certificate is needed, the DigiCert agent calls this shell script to invoke the Certbot client, which then requests the certificate through the Trust Lifecycle Manager ACME service.
The shell script contains the Certbot command to request and install certificates for your custom application using the parameters expected by the Trust Lifecycle Manager ACME service.
Below are examples of shell scripts to enable Trust Lifecycle Manager managed automation for custom Linux and Windows applications.
Variable definitions at the top of these shell scripts set the required ACME request parameters:
These must match up with the ACME arguments you configure for the custom application in Trust Lifecycle Manager.
During an automation event, values for these arguments are supplied to the shell script by the local DigiCert agent that calls it.
Commands used in the shell script:
Must include all mandatory parameters.
Must not exceed 512 characters.
Must not include special directives like
rm -rf
orrmdir
The shell script filename:
Must end with
.sh
or.bat
.Must not exceed 255 characters.
Utilisez le menu Manage automation (Gérer l’automatisation) de CertCentral pour finaliser la configuration pour votre application personnalisée.
Dans votre compte CertCentral, depuis le menu principal à gauche, cliquez sur Automation > Manage automation (Automatisation > Gérer l'automatisation).
From the More actions dropdown at top, select Add script.
Fill out the Add script form:
Name: Enter a user-friendly name to use when referencing the script.
Operating system: Select the applicable operating system (Linux or Windows).
Script type: Select Custom automation.
Script filename: Enter the script's filename in or path relative to the local agent's user-scripts sub-directory.
Linux: If your script is named "myscript.sh" and is stored directly in the agent's user-scripts sub-directory, enter myscript.sh here. If you stored the script within an additional sub-directory called "custom-apps" in the user-scripts sub-directory, enter custom-apps/myscript.sh instead.
Windows: If your script is named "myscript.bat" and is stored directly in the agent's user-scripts folder, enter myscript.bat here. If you stored the script within an additional sub-folder called "custom-apps" in the user-scripts folder, enter custom-apps\myscript.bat instead.
Avertissement
Make sure there are no spaces in the filename for either Linux or Windows. The script will fail if the path or filename has spaces in it.
Command-line arguments: Enter a space-separated list of general ACME parameters to use with your custom automation script.
Par exemple :
{acmeDirectoryUrl} {hosts} {email} {key} {extActKid} {extActHmac}
À noter :
Chaque argument doit être saisi exactement tel qu’affiché ici.
L’ordre des arguments doit correspondre à la manière dont ils sont utilisés dans votre script shell.
Lors d'un événement d'automatisation, les valeurs requises pour ces arguments sont obtenues automatiquement du profil d'automatisation sélectionné.
Explication des arguments ACME pris en charge par l'automatisation managée CertCentral :
{acmeDirectoryUrl}
– Paramètres d’URL de répertoire ACME{hosts}
– Détails de l’hôte de certificat{email}
– Adresse e-mail recevant les notifications.{key}
– Algorithme de la clé (RSA ou ECC).{extActKid}
– Clé d’identification du compte externe utilisée dans l’URL{extActHmac}
– Clé HMAC pour la signature de la réponse
Description (optional): Enter an optional description for the script to help identify it when working with DigiCert agents and agent-based automations in Trust Lifecycle Manager.
Depuis la vue Manage automation (Gérer l'automatisation), sélectionnez le Nom de l'agent ACME local tournant sur le même hôte de certificat que l’application personnalisée.
To complete the custom automation configuration, assign the script to any DigiCert agents that will coordinate certificate lifecycle automation events for the custom application:
From the Trust Lifecycle Manager main menu, select Discovery & automation tools > Agents.
Locate the local DigiCert agents on the systems where the custom application is running. Select each agent by name to view the details for it.
Select the pencil (edit) icon on the right of the agent details page to update the agent configuration.
In the IP/port targets section for the agent, locate any IP/port targets where the custom application is running and configure them as follows:
Application: Select Custom.
Custom automation script: Select the custom automation script by the name assigned to it in Trust Lifecycle Manager.
Select the Update button at bottom to save your changes.
What's next
After enabling managed automation for your custom application, you can schedule certificate lifecycle automation events for it as you would any other server application in Trust Lifecycle Manager.