You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by GitBox <gi...@apache.org> on 2022/11/01 01:18:22 UTC

[GitHub] [trafficserver] thedevopsmachine commented on issue #9167: TLS UserAgent hook support for Lua

thedevopsmachine commented on issue #9167:
URL: https://github.com/apache/trafficserver/issues/9167#issuecomment-1297883354

   The primary use case is to be able to fetch a certificate from another location (e.g. Redis), parse it, maybe store it in a cache, then tell ATS to use that certificate when establishing the TLS session. Maybe some functions like:
   - ts.ssl.parse_server_certificate(certificatePemString, privateKeyPemString)
   - ts.ssl.set_server_certificate(x509)
   
   where the `parse_server_certificate` method returns the `x509` object required by the `set_server_certificate` method. 
   
   Regarding the client certificate for mTLS, those methods might be:
   - ts.ssl.set_verify_client(certificationLevel, caCertificates)
   
   where the parameters correspond to the settings in the [sni.yaml config file](https://docs.trafficserver.apache.org/en/latest/admin-guide/files/sni.yaml.en.html)


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@trafficserver.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org