Skip to content

Instantly share code, notes, and snippets.

Created July 19, 2022 09:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save obahareth/bf7568dbc4796d42ad894387eb217ac7 to your computer and use it in GitHub Desktop.
An example on how to configure Faraday for SSL using client certificates, a private key, and a certificate authority file. This can help if you're getting errors like: TypeError (wrong argument type String (expected OpenSSL/X509))
# Taken from
connection = 'https://host:443/ping', ssl: {
ca_file: 'config/credentials/ROOT_CA.cer',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment