How to skip SSL verification

Very cool tool!

I’m having trouble getting skip_ssl_verify to work.

        request:
            method: GET
            skip_ssl_verify: true
            endpoint: "https://blahblah"

This gives me x509: certificate signed by unknown authority.

Doing the same as a curl works just fine:

curl --insecure "https://blahblah"

Thanks!

Hi,

Glad you like the tool.

Can you give the output of apid version?

Also, posting the whole YAML config would be more helpful? Or at least a complete transaction or step.

Thanks for the quick reply!

apid version gives me APId v0.1.2. I’m on Linux x64.

Full YAML config:

transactions:
    - id: Status checks
      steps:
          - id: healthcheck
            request:
                method: GET
                skip_ssl_verify: true
                endpoint: "https://{{ env.TARGET_HOST }}.{{ env.BASE_URL }}/healthCheck"

Full output:

Status checks:
    FAIL healthcheck

         request: GET https://blah.blah/healthCheck 
         errors:
             execute:
                Get https://blah.blah/healthCheck: x509: certificate signed by unknown authority
            
successful transactions: 0/1
failed transactions:     1/1

Ops, we had the docs wrong. The skip_ssl_verify was previously on the step, but we moved it as a global option and forgot to update the docs. So you have to put it on the same level as transactions:

skip_ssl_verify: true
transactions:
    - id: Status checks
      steps:
          - id: healthcheck
            request:
                method: GET
                skip_ssl_verify: true
                endpoint: "https://{{ env.TARGET_HOST }}.{{ env.BASE_URL }}/infinity/v1/healthCheck"

And that will apply to all steps.

Thanks for pointing it out :slight_smile:

1 Like