Skip to main content

관리형 자동화를 위한 사용자 지정 애플리케이션 설정

CertCentral 관리형 자동화는 가장 널리 사용되는 웹 서버 애플리케이션을 즉시 지원합니다.

CertCentral은 또한 "사용자 지정 애플리케이션" 옵션을 통해 타사 ACME 클라이언트 구성을 허용하여 기본적으로 지원되지 않는 추가 애플리케이션에 대한 인증서 관리를 확장하도록 유연성을 제공합니다.

사용자 지정 애플리케이션에 대해 관리형 자동화를 사용하려면 다음 단계를 따르세요.

Custom automations require an active DigiCert agent on the server. The agent:

  • Coordinates each automation request sent through Trust Lifecycle Manager, including details about the requested certificate type and properties.

  • Invokes your custom shell script on the server to complete the request and install the certificate for your application.

For detailed instructions about how to install and activate DigiCert agents on your servers, see Deploy and manage agents.

중요

To add and assign custom scripts, each agent must be running software version 3.1.2 or above.

In addition to a DigiCert agent, the server must have the Certbot ACME client installed.

Your custom shell script invokes Certbot to complete each request and install the resulting certificate 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 help manage the certificates for your custom application.

The shell script contains the Certbot command to request and install certificates for your application via the Trust Lifecycle Manager ACME service. Below are example shell scripts for Linux and Windows.

Example scripts

Usage notes

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 (see below).

  • During an automation event, values for these arguments are supplied to the shell script by the local DigiCert agent.

Commands used in the shell script:

  • Must include all mandatory parameters.

  • Must not exceed 512 characters.

  • Must not include special directives like rm -rf or rmdir

The shell script filename:

  • Must end with .sh or .bat.

  • Must not exceed 255 characters.

To add a custom automation script in Trust Lifecycle Manager:

  1. In the Trust Lifecycle Manager menu, go to Discovery & automation tools > Scripts > DigiCert agents.

  2. Open the Add script for dropdown on the top-right, and select DigiCert agents.

  3. Complete the Add new script sidebar:

    • Name: Enter a user-friendly name for referencing the script.

    • Operating system: Select the applicable operating system (Linux or Windows).

    • Script type: Select Custom automation.

    • Upload script: Drag and drop or browse to select the script to upload. Once uploaded, the name of the script appears below the widget.

    • Description: (Optional) Enter an optional description for the script to help identify it in Trust Lifecycle Manager.

    • Command-line arguments: Enter a space-separated list of general ACME parameters to use with your custom automation script.

      예:

      {acmeDirectoryUrl} {hosts} {email} {key} {extActKid} {extActHmac}

      유의 사항:

      • 각 인수는 여기에 표시된 대로 정확하게 입력해야 합니다.

      • 인수의 순서는 셸 스크립트에서 사용되는 방식과 일치해야 합니다.

      • 자동화 이벤트 중에 이러한 인수에 필요한 값은 선택한 자동화 프로필에서 자동으로 가져옵니다.

      CertCentral 관리형 자동화에서 지원하는 ACME 인수에 대한 설명:

      • {acmeDirectoryUrl} – ACME 디렉터리 URL 설정.

      • {hosts} – 인증서 호스트 세부 정보.

      • {email} – 알림용 이메일 주소.

      • {key} – 키 알고리즘(RSA 또는 ECC).

      • {extActKid} – URL에 사용되는 외부 계정 키 식별자.

      • {extActHmac} – 응답 서명을 위한 HMAC 키.

  4. Select Add and verify script to verify the script in Trust Lifecycle Manager. Once verified, the script is available for assignment.

참고

For more information about how to add and manage agent scripts in Trust Lifecycle Manager, see Agent scripts.

To complete the custom automation configuration, assign the script to any DigiCert agents that will manage certificates for the custom application:

  1. From the Trust Lifecycle Manager menu, go to Discovery & automation tools > Agents.

  2. Select the agent by name to view the details for it.

  3. On the details page, select the pencil icon on the right to edit the agent configuration.

  4. 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.

  5. Select the Update button at the bottom to save your changes.

What's next

After enabling managed automation for your custom application, you can manage certificate deployments for it as you would any other server application in Trust Lifecycle Manager.

When you need a new certificate for your custom application:

  1. You submit the request through the Trust Lifecycle Manager web console or REST API.

  2. The DigiCert agent on the local system processes the certificate request and invokes your custom shell script with the required parameters.

  3. Your custom shell script invokes the Certbot ACME client to complete the request and install the new certificate for your application.