spacewander commented on a change in pull request #2519:
URL: https://github.com/apache/apisix/pull/2519#discussion_r511967114
##########
File path: bin/apisix
##########
@@ -389,6 +389,10 @@ http {
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 10m;
+ {% if ssl.ssl_trusted_certificate ~= nil then %}
+ lua_ssl_trusted_certificate {* ssl.ssl_trusted_certificate *};
Review comment:
Better to check if the certificate exists before generating the
configuration.
##########
File path: conf/config-default.yaml
##########
@@ -101,6 +101,9 @@ apisix:
enable: true
enable_http2: true
listen_port: 9443
+ ssl_trusted_certificate: /path/to/ca-cert # Specifies a file path with
trusted CA certificates in the PEM format
+ # used to verify the certificate
when APISIX needs to do SSL/TLS handshaking
+ # with external services (e.g.
ETCD)
Review comment:
ETCD => etcd
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]