title: Okta API getting started error setting cert type | Getting User Apps api call
body: <p>I am trying to get started with the Okta API.</p>
  
  <p>The command I type in cmd is:</p>
  
  <pre><code>curl -v -H "Authorization: SSWS MyAPITokenHERE" \
          -H "Accept: application/json" -H "Content-Type: application/json" \
          -X GET "https://MyDomain.okta.com/api/v1/apps"
  </code></pre>
  
  <p>*note I formatted with backslashes at the end of line to better read.</p>
  
  <p>The above command is the format according to the API documents.</p>
  
  <pre><code>C:\Users\MyAccount&gt;curl -v -H "Authorization: SSWS MyApiToken" -H "Accept: application/json" -H "Content-Type: application/json" -X
   GET "https://MyDomain.okta.com/api/v1/apps" --cert-type (SSL)
  
  * About to connect() to mydomain.okta.com port 443 (#0)
  *   Trying 99.99.999.999...
  * connected
  * Connected to mydomain.okta.com (99.99.999.999) port 443 (#0)
  * error setting certificate verify locations:
    CAfile: /usr/ssl/certs/ca-bundle.crt
    CApath: none
  * Closing connection #0
  curl: (77) error setting certificate verify locations:
    CAfile: /usr/ssl/certs/ca-bundle.crt
    CApath: none
  </code></pre>
  
  <p>I have tried setting the certification type to SSL but that did not fix it. I am currently going through documentation and stackoverflow questions but with no luck.</p>
  
  <p>I would appreciate it if someone can explain the reasoning behind this &amp; help me figure out what I need to do? Thank you in advance.</p>
  
  <p><strong>Okta API Documentation</strong>
  <a href="https://github.com/okta/api/blob/master/docs/getting_started/design_principles.md" rel="nofollow">https://github.com/okta/api/blob/master/docs/getting_started/design_principles.md</a></p>
  
  <p><strong>CURL Documentation</strong>
  <a href="http://curl.haxx.se/docs/manpage.html" rel="nofollow">http://curl.haxx.se/docs/manpage.html</a></p>
  
  <p><strong>Update</strong>
  I have added the optional parameter  [-k] to suppress the SSL check but still would like to know what the problem could is</p>
  
  <pre><code>curl -v -H "Authorization: SSWS MyAPITokenHERE" \
          -H "Accept: application/json" -H "Content-Type: application/json" \
          -X GET "https://MyDomain.okta.com/api/v1/apps" -k
  </code></pre>