-
I am trying to use sqlpage.fetch() with internal RootCA. With sqpage i got Failed to connect to host: invalid peer certificate: UnknownIssuer |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello ! SQLPage's http client currently uses a baked-in list of trusted root certificates (from https://www.ccadb.org/). This allows distributing a single binary, that is secure and works everywhere. Currently there is no way to customize this. I opened a new issue regarding the implementation of that here: #507 In the meantime, you can use SET my_response = sqlpage.exec('curl', '--cacert', '/path/to/custom_ca.pem', 'https://my-secure-custom-service') |
Beta Was this translation helpful? Give feedback.
-
Since SQLPage v0.26, you can make sqlpage use the system's native certificate store, using {
"system_root_ca_certificates": true
} in |
Beta Was this translation helpful? Give feedback.
Since SQLPage v0.26, you can make sqlpage use the system's native certificate store, using
in
sqlpage/sqlpage.json
or by setting theSSL_CERT_FILE
orSSL_CERT_DIR
environment variables.