Skip to content

Commit 6e4a01a

Browse files
Update manage-certificates.mdx
add additional instruction for hostname based AOP
1 parent d4a31c8 commit 6e4a01a

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/content/docs/ssl/origin-configuration/authenticated-origin-pull/set-up/manage-certificates.mdx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,25 @@ For hostname:
3737

3838
1. [Upload the new certificate](/api/resources/origin_tls_client_auth/subresources/hostnames/subresources/certificates/methods/create/).
3939

40-
2. [Enable Authenticated Origin Pulls for that specific hostname](/api/resources/origin_tls_client_auth/subresources/hostnames/methods/update/).
40+
2. [List your certificates(s)](/api/resources/origin_tls_client_auth/subresources/hostnames/subresources/certificates/methods/list/) and note the ID.
41+
42+
3. [Enable Authenticated Origin Pulls for that specific hostname](/api/resources/origin_tls_client_auth/subresources/hostnames/methods/update/) and enable the certificate you want to be used with the ID obtained in step 2:
43+
44+
```bash
45+
curl --request PUT \
46+
--url https://api.cloudflare.com/client/v4/zones/$ZONEID/origin_tls_client_auth/hostnames \
47+
--header 'authorization: Bearer $MYTOKEN' \
48+
--header 'content-type: application/json' \
49+
--data '{
50+
"config": [
51+
{
52+
"enabled": true,
53+
"hostname": "example.com",
54+
"cert_id": "$CERTID"
55+
}
56+
]
57+
}'
58+
```
4159

4260
For global:
4361

0 commit comments

Comments
 (0)