title: Artifactory jfrog cli: x509: certificate signed by unknown authority
body: <p>Environment: Windows Server 2019</p>
  <p>Attempting to use the jfrog cli to integrate with an Artifactory server, when I get this error</p>
  <pre><code>jfrog rt config example-company --url=$ARTIFACTORY_URL --user=$ARTIFACTORY_USER --password=$ARTIFACTORY_PASS
  [Info] Encrypting password...
  [Error] Get https://artifactory.example.com/api/security/encryptedPassword: x509: certificate signed by unknown authority
  </code></pre>
  <p>Navigating to <a href="https://artifactory.example.com/api/security/encryptedPassword" rel="nofollow noreferrer">https://artifactory.example.com/api/security/encryptedPassword</a> in a browser shows that the TLS certificate is valid, however I get a different error:</p>
  <pre><code>{
    &quot;errors&quot; : [ {
      &quot;status&quot; : 404,
      &quot;message&quot; : &quot;User not found: anonymous&quot;
    } ]
  }
  </code></pre>
  <p>ping commands also return TLS errors</p>
  <pre><code>jfrog rt ping --url=https://artifactory.example.com
  [Error] Get https://artifactory.example.com/artifactory/api/system/ping: x509: certificate signed by unknown authority
  </code></pre>
  <p>Looking at the jfrog github issues, others have reported similar issues</p>
  <p><a href="https://github.com/jfrog/jfrog-cli/issues/277" rel="nofollow noreferrer">https://github.com/jfrog/jfrog-cli/issues/277</a></p>
  <p>I found a similar Stack Overflow question: <a href="https://stackoverflow.com/questions/56760353/artifactory-jfrog-cli-unable-to-authenticate">Artifactory jfrog cli unable to authenticate</a> but it does not describe the procedure to debug and how the solution was found so I do not know if it applies to my situation.</p>
  <p>We are not using self-signed certificates. According to the Certificate Viewer in Google Chrome, the cert comes from Sectigo RSA Domain Validation Secure Server CA.</p>
  <p>How can I get the jfrog cli to connect to the Artifactory server?</p>