MTG EST
Introduction
This page describes the basic functions of MTG EST, an EST server implementation based on RFC 7030 🔗 and its integration with MTG CLM.
| Some certificate providers may not be compatible with the EST protocol. For details, see the supported certificate providers section. |
MTG CLM Integration
To integrate with MTG CLM, MTG EST uses the credentials of an API client. It also uses a policy to manage certificates.
The policy identifies the CA that issues the certificate and the template to use. It can also define additional restrictions and settings for the certificate lifecycle.
Defining a Default Policy
An API client can optionally be associated with a default policy. By default, MTG EST uses this policy to manage certificates.
If the API client has no default policy and the request does not specify a different policy, MTG EST returns an invalid identifier error. For details on specifying a policy in a request, see Endpoints for Selecting a Different Policy.
Selecting a Different Policy
MTG EST allows clients to specify a policy other than the API client’s default policy. To use a different policy, include its ID in the request URL as described in Endpoints for Selecting a Different Policy.
Setting Up Password Authentication
MTG EST supports Basic Authentication as defined in RFC 7617 🔗.
To obtain the required credentials, create an end entity and an associated end entity password. Use the end entity UUID as the username and the associated end entity password as the password.
Certificate Enrollment Using cURL
You can use cURL to submit a prepared certificate signing request (CSR) to the EST server.
The following example uses an initial device certificate for client authentication and saves the server response to cert.p7.
| Replace the example hostname, port and deployment path with the values configured for your EST server. |
curl https://est.example.com:91/est-local/.well-known/est/simpleenroll \
--cert device-init-cert.pem \
--key device-init-key.pem \
--cacert server-root.pem \
-d @req.b64.p10 \
-H "Content-Type: application/pkcs10" \
-o cert.p7
The command uses the following options:
-
--cert: Provides the initial device certificate for client authentication. -
--key: Specifies the corresponding private key used locally during authentication. -
--cacert: Specifies the trusted CA certificate file used to verify the EST server’s TLS certificate. -
-d @req.b64.p10: Reads the prepared Base64-encoded CSR fromreq.b64.p10and sends it in the HTTP POST request body. -
-H "Content-Type: application/pkcs10": Identifies the request body as a PKCS#10 certificate signing request. -
-o cert.p7: Saves the server response tocert.p7.
EST Modes
MTG EST supports two ways of requesting certificates, depending on who manages enrollment:
-
End Entity (EE) mode: Devices or applications request certificates for their own use.
-
Registration Authority (RA) mode: An authorized representative requests certificates on behalf of end entities.
EE Mode: Direct Certificate Enrollment
EE mode is the default mode. Use it when devices or applications manage their own certificate requests. This supports direct enrollment without requiring a representative to request each certificate on their behalf.
For the initial request, the end entity can authenticate using its UUID and an end entity password through Basic Authentication. Once a certificate has been issued, the end entity can use it to authenticate subsequent certificate requests through mutual TLS (mTLS).
The configured EST API client requires the following permissions:
-
Read permission on the specified policy and its corresponding realm.
-
Read permission on the specified end entity.
-
Read permission on the specified certificate.
-
Create permission on the corresponding realm for the specified end entity and policy.
RA Mode: Certificate Enrollment on Behalf of End Entities
RA mode allows an authorized representative to request certificates on behalf of end entities. Use it when certificate enrollment is managed centrally rather than individually by each device or application.
The representative authenticates as a MTG CLM user with an RA certificate through mutual TLS (mTLS). The EST server then requests certificates for end entities on behalf of that user.
RA Certificate Requirements
To use RA mode, select a MTG CLM user and issue an RA certificate for that user. The RA certificate and key must be available as required by your MTG CLM setup.
The CARA template used to issue the RA certificate must include the following extension to identify it as an RA certificate:
<extendedKeyUsage clientAuth="true">
<keyPurposeId>
<default>1.3.6.1.5.5.7.3.28</default>
</keyPurposeId>
</extendedKeyUsage>
The MTG CLM user must have access to MTG CLM and permission to create certificates in the realm where the policy is located.
API Client Permissions
To support enrollment on behalf of end entities, the configured EST API client requires the following permissions:
-
Global permission
USERS_READ. -
Read permission on the configured
SYSTEMrealm. -
Read permission on the specified policy and its corresponding realm.
-
Read permission on end entities and create permission for end entities on the corresponding realm.
-
Create permission on the corresponding realm for the specified end entity and policy.
Custom Features
Endpoints for Selecting a Different Policy
By default, MTG EST offers the following endpoints:
-
EST_SERVER_BASE_URL/.well-known/est/cacerts -
EST_SERVER_BASE_URL/.well-known/est/simpleenroll -
EST_SERVER_BASE_URL/.well-known/est/simplereenroll
Requests to these endpoints use the default policy of the associated API client.
To use a different policy, include its ID in the request URL using one of the following endpoints:
-
EST_SERVER_BASE_URL/.well-known/est/<identifier>/cacerts -
EST_SERVER_BASE_URL/.well-known/est/<identifier>/simpleenroll -
EST_SERVER_BASE_URL/.well-known/est/<identifier>/simplereenroll
Replace <identifier> with a valid policy ID.
For example, to request a certificate under the policy ffc0d281-f9df-45cd-a30d-1881cd67012a, use the following URL:
EST_SERVER_BASE_URL/.well-known/est/ffc0d281-f9df-45cd-a30d-1881cd67012a/simpleenroll
Troubleshooting EST Connections
EE Mode
-
Have you created an end entity and an associated end entity password for the policy you intend to use?
-
When requesting a certificate through Basic Authentication, are you using the correct username and password? The username is the end entity UUID.
-
Have you included the correct policy ID in the EST server URL? This is required when the policy is not the EST API client’s default policy.
-
When using mTLS, is the CA certificate that anchors trust in the client certificate configured as trusted on the reverse proxy?
-
When using mTLS, have you included the required CA certificate chain with the client certificate? Append the issuing subordinate CA certificate and any additional intermediate CA certificates to the client certificate so that the reverse proxy can verify the chain against its trusted root CA and complete the TLS handshake.
RA Mode
-
Have you added the root CA certificate for the RA certificate to the reverse proxy’s truststore?
-
Are you authenticating through mTLS with an RA certificate issued to a MTG CLM user?
-
Does the CARA template used to issue the RA certificate include the extension described in RA Certificate Requirements?
-
Does the user have access to MTG CLM and permission to create certificates in the realm where the policy is located?
-
Does the EST API client have access to the
SYSTEMrealm to read the user’s RA certificate?