Agent Configuration
Once the package has been downloaded and extracted, you must configure the .env file located in the config directory.
certguardian-agent/
├── certguardian-agent(.exe)
└── config/
└── .envPlatform Configuration
Configure the following values to allow the agent to communicate with the CertGuardian platform.
# CertGuardian API Configuration
API_URL=""
API_TOKEN=""API_URL
URL of the CertGuardian Agent API endpoint.
The URL must always include the /api/agent path.
Example:
API_URL="https://api-certguardian.example.com/api/agent"Important
The API_URL must point to the /api/agent endpoint. If only the platform URL is configured, the agent will not be able to communicate correctly with CertGuardian.
API_TOKEN
Token generated when creating the agent in the CertGuardian platform.
Example:
API_TOKEN="xxxxxxxxxxxxxxxxxxxxxxxx"Important
Each agent has its own token. Use the token associated with the agent previously created in the CertGuardian platform.
CSR Information
These values will be used as default values when generating Certificate Signing Requests (CSRs).
# CSR Subject Information
ORG="MyCompany"
COUNTRY=""
STATE=""
LOCALITY=""ORG
Organization name.
COUNTRY
Two-letter country code.
Example:
COUNTRY="ES"STATE
State or province.
LOCALITY
City or locality.