Hi, is there any way to pass a cert when making a ...
# ktor
t
Hi, is there any way to pass a cert when making a request with Ktor Client? Something like…
Copy code
# python requests lib
        url = '<https://example.com>'
        headers = {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
        cert = (path_to_cert_file, path_to_key_file)
        data = {
            'username': username,
            'password': password
        }
        r = <http://requests.post|requests.post>(url, headers=headers, cert=cert, data=data)
e
Hi @Tony Blundell, you can pass the certificate in specific engines configuration. What engine do you use?
t
Ah cool, is there documentation for that? I’m not tied to any specific engine.
t
👍 thanks