Skip to main content

TLS Edge Mutual TLS Module


Replace TLS Edge Mutual TLS Module

Request

PUT /edges/tls/{id}/mutual_tls

Example Request

curl \
-X PUT \
-H "Authorization: Bearer {API_KEY}" \
-H "Content-Type: application/json" \
-H "Ngrok-Version: 2" \
-d '{"enabled":true,"certificate_authority_ids":["ca_2TMGJkDMPEOQsJsTtw4RAlBRjlM"]}' \
https://api.ngrok.com/edges/tls/edgtls_2TMGJoJCsjJkPU8L6x2V8Cqr0ks/mutual_tls

Parameters

   
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
certificate_authority_idsList<string>list of certificate authorities that will be used to validate the TLS client certificate presented by the initiator of the TLS connection

Response

Returns a 200 response on success

Example Response

{
"enabled": true,
"certificate_authorities": [
{
"id": "ca_2TMGJkDMPEOQsJsTtw4RAlBRjlM",
"uri": "https://api.ngrok.com/certificate_authorities/ca_2TMGJkDMPEOQsJsTtw4RAlBRjlM"
}
]
}

Fields

   
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
certificate_authoritiesRefPEM-encoded CA certificates that will be used to validate. Multiple CAs may be provided by concatenating them together.

Ref fields

   
idstringa resource identifier
uristringa uri for locating a resource

Get TLS Edge Mutual TLS Module

Request

GET /edges/tls/{id}/mutual_tls

Example Request

curl \
-X GET \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/tls/edgtls_2TMGJoJCsjJkPU8L6x2V8Cqr0ks/mutual_tls

Response

Returns a 200 response on success

Example Response

{
"enabled": true,
"certificate_authorities": [
{
"id": "ca_2TMGJkDMPEOQsJsTtw4RAlBRjlM",
"uri": "https://api.ngrok.com/certificate_authorities/ca_2TMGJkDMPEOQsJsTtw4RAlBRjlM"
}
]
}

Fields

   
enabledbooleantrue if the module will be applied to traffic, false to disable. default true if unspecified
certificate_authoritiesRefPEM-encoded CA certificates that will be used to validate. Multiple CAs may be provided by concatenating them together.

Ref fields

   
idstringa resource identifier
uristringa uri for locating a resource

Delete TLS Edge Mutual TLS Module

Request

DELETE /edges/tls/{id}/mutual_tls

Example Request

curl \
-X DELETE \
-H "Authorization: Bearer {API_KEY}" \
-H "Ngrok-Version: 2" \
https://api.ngrok.com/edges/tls/edgtls_2TMGJoJCsjJkPU8L6x2V8Cqr0ks/mutual_tls

Response

Returns a 204 response with no body on success