You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by sh...@apache.org on 2021/07/09 14:46:04 UTC

[apisix] branch master updated: docs: How to fix `unable to get local issuer certificate` error (#4553)

This is an automated email from the ASF dual-hosted git repository.

shuyangw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git


The following commit(s) were added to refs/heads/master by this push:
     new 0a583e8  docs: How to fix `unable to get local issuer certificate` error (#4553)
0a583e8 is described below

commit 0a583e8549a3df61ed3927207f9f7e189afea87a
Author: AnJia <an...@gmail.com>
AuthorDate: Fri Jul 9 22:45:52 2021 +0800

    docs: How to fix `unable to get local issuer certificate` error (#4553)
    
    Co-authored-by: Shuyang Wu <wo...@gmail.com>
---
 docs/en/latest/FAQ.md | 16 ++++++++++++++++
 docs/zh/latest/FAQ.md | 15 +++++++++++++++
 2 files changed, 31 insertions(+)

diff --git a/docs/en/latest/FAQ.md b/docs/en/latest/FAQ.md
index 538d056..18a9cbb 100644
--- a/docs/en/latest/FAQ.md
+++ b/docs/en/latest/FAQ.md
@@ -536,3 +536,19 @@ HTTP/1.1 200 OK
   "url": "http://127.0.0.1/get"
 }
 ```
+
+## How to fix `unable to get local issuer certificate` error
+
+`conf/config.yaml`
+
+```yaml
+# ...
+apisix:
+  ssl:
+    ssl_trusted_certificate: /path/to/certs/ca-certificates.crt
+# ...
+```
+
+**Note:**
+
+- Whenever trying to connect TLS services with cosocket, you should set `apisix.ssl.ssl_trusted_certificate`
diff --git a/docs/zh/latest/FAQ.md b/docs/zh/latest/FAQ.md
index 81f9164..9cb36fa 100644
--- a/docs/zh/latest/FAQ.md
+++ b/docs/zh/latest/FAQ.md
@@ -535,3 +535,18 @@ HTTP/1.1 200 OK
   "url": "http://127.0.0.1/get"
 }
 ```
+
+## 如何解决 `unable to get local issuer certificate` 错误
+
+修改 `conf/config.yaml`
+
+```yaml
+# ... 忽略其余无关项
+apisix:
+  ssl:
+    ssl_trusted_certificate: /path/to/certs/ca-certificates.crt
+# ... 忽略其余无关项
+```
+
+**注意:**
+尝试使用 cosocket 连接任何TLS服务时,都需要配置 `apisix.ssl.ssl_trusted_certificate`