title: SAS DS2 Get HTTPS page content using certificate
body: <p>I am running a SAS DS2 program and the below code gets the page contents from the https page using username and password. The code works fine in my local env but not in the clustered server. </p>
  
  <p>Proposed solution in a blog :  </p>
  
  <p>Include sslcalistloc config variable in sasv9_local.cfg to resolve this error. I added the below line in the server but still the same error as below. </p>
  
  <p>-sslcalistloc /etc/pki/tls/certs/ca-bundle.trust.crt</p>
  
  <hr>
  
  <pre><code>    h.createGetMethod(url);
  
      auth =  put('username:Password',$base64x64.);
      h.addRequestHeader('Authorization', 'Basic ' || auth);
  
      h.executeMethod();
  
      status = h.getStatusCode();
      put 'Requested resource for country code:' code 'executeMethod() status:'    status;
  
      if status eq 200 then
          do;
              /* 200 = OK */
              /* retrieve the body from the response that came from the server */
              h.getResponseBodyAsString(body, rc);
          end;
  
      return body;
  </code></pre>
  
  <p>ERROR: 
          OpenSSL error 336134278 (0x14090086) occurred in SSL_connect/accept at      line 5377, the error message is "error:14090086:SSL
         routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed".
          ERROR: Encryption run-time execution error</p>