Skip to content

Commit 74cd3d5

Browse files
authored
Update error-526.mdx
added this part: If you are using self-signed SSL certificate at the origin server, use the following workaround to avoid an HTTP Error 526. Add your self-signed SSL certificate to the Custom Origin Trust Store. This allows the Cloudflare edge to recognize your self-signed SSL certificate as valid. In your Worker's configuration, enable the cots_on_external_fetch compatibility flag. This flag enables the use of the Custom Origin Trust Store when making external (grey-clouded) subrequests from a Cloudflare Worker.
1 parent f49a15e commit 74cd3d5

File tree

1 file changed

+7
-1
lines changed
  • src/content/docs/support/troubleshooting/http-status-codes/cloudflare-5xx-errors

1 file changed

+7
-1
lines changed

src/content/docs/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-526.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ Workers subrequests to any hostname outside your Cloudflare zone that is not pro
3939

4040
As a result, a valid SSL certificate is required at the origin server.
4141

42+
If you are using self-signed SSL certificate at the origin server, use the following workaround to avoid an HTTP Error `526`.
43+
44+
1. Add your self-signed SSL certificate to the **[`Custom Origin Trust Store`](/ssl/origin-configuration/custom-origin-trust-store/)**. This allows the Cloudflare edge to recognize your self-signed SSL certificate as valid.
45+
2. In your Worker's configuration, enable the **[`cots_on_external_fetch` compatibility flag](/workers/configuration/compatibility-flags/#do-not-use-the-custom-origin-trust-store-for-external-subrequests)**. This flag enables the use of the **[`Custom Origin Trust Store`](/ssl/origin-configuration/custom-origin-trust-store/)** when making external (grey-clouded) subrequests from a Cloudflare Worker.
46+
47+
4248
### Resolution
4349

4450
:::note
@@ -56,4 +62,4 @@ Request your server administrator or hosting provider to review the origin web s
5662

5763
![Screen showing an SSL certificate with no errors.](~/assets/images/support/hc-import-troubleshooting_5xx_errors_sslshopper_output.png)
5864

59-
If the origin server uses a self-signed certificate, configure the domain to use _Full_ _SSL_ instead of _Full SSL (Strict)_. Refer to [recommended SSL settings for your origin](/ssl/origin-configuration/ssl-modes).
65+
If the origin server uses a self-signed certificate, configure the domain to use _Full_ _SSL_ instead of _Full SSL (Strict)_. Refer to [recommended SSL settings for your origin](/ssl/origin-configuration/ssl-modes).

0 commit comments

Comments
 (0)