{"<domain>": "<cert-id>"}
.
When mapping a certificate to a domain:
https://
)*
wildcard - either in place of the whole domain or as part of the domain namecertId
to an upstream service located at https://api.production.myservice.com:8443
you could map the certificate as:
{"api.production.myservice.com:8443": "certId"}
{"*.production.myservice.com:8443": "certId"}
{"api.*.myservice.com:8443": "certId"}
*
) to replace part of the domain name, it can only represent one fragment so, using our example, you would not achieve the same mapping using {"*.myservice.com:8443": "certId"}
.
A default certificate to be used for all upstream requests can be mapped by replacing the specific domain with the wildcard, for example {"*", "certId"}
.
*
will ensure that this certificate will be used in all upstream requests where no other certificate is mapped (at Gateway or API level).
upstream_certificates
) in your API definition.
Mapping a certificate to domain *
will ensure that this certificate will be used in all upstream requests where no other certificate is mapped in the API definition.
/etc/ssl/certs
). If you are using self-signed certificates, store them here so that Tyk can verify the upstream service.*
will ensure that only these certificates will be used to verify the upstream service during the mTLS handshake.
pinned_public_keys
).
proxy.transport.ssl_insecure_skip_verify
) to instruct Tyk to ignore the certificate verification stage for a specific API.
If you want to ignore upstream certificate verification for all APIs deployed on Tyk, you can use the proxy_ssl_insecure_skip_verify option in the Tyk Gateway configuration.
These are labelled insecure with good reason and should never be configured in production.
mutualTLS
field in the TykOasApiDefinition
object when using Tyk Operator, for example:upstream_certificate_refs
field can be used to configure certificates for different domains. References can be held to multiple secrets which are used for the domain mentioned in the key. Currently ”*” is used as a wildcard for all the domainsThe example listed below shows that the certificate in the secret, my-test-tls, is used for all domains.upstream_certificates
field allows certificates uploaded to the certificate store in Tyk Dashboard to be referenced in the Api Definition: