<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Certificate error while calling API. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803796#M316511</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/363459"&gt;@khandelwalanmol&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apparently certificate verification has failed.&lt;BR /&gt;Please have a look here.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/n183v6l7w6dphwn1giqjw725640c.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/n183v6l7w6dphwn1giqjw725640c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Mar 2022 14:22:59 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2022-03-24T14:22:59Z</dc:date>
    <item>
      <title>Certificate error while calling API.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803297#M316303</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;I have been trying to Call an API and fetch a access token. Have been dealing with certificate error. Here is the error log:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR:

OpenSSL error 336134278 (0x14090086) occurred in SSL_connect/accept at line 5388, the error message is "error:14090086:SSL
routines:ssl3_get_server_certificate:certificate verify failed".
ERROR: Secure communications error status 807ff008 description "OpenSSL error 336134278 (0x14090086) occurred in SSL_connect/accept
at line 5388, the error message is "error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed"."
ERROR: Encryption run-time execution error
ERROR: Call to tcpSockContinueSSL failed.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code for the call.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;options set=SSL_USE_SNI="0" set=SSL_SNI_HOSTNAME="api.bcda.cms.gov"  ;	
proc http
   		url="https://api.bcda.cms.gov/auth/token" AUTH_BASIC
   		WEBUSERNAME="&amp;amp;client_id."
   		WEBPASSWORD="&amp;amp;client_secret."
   		out=apitoken
   		method="POST";
 		
   		headers "Accept"="application/json";
	run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Tue, 22 Mar 2022 11:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803297#M316303</guid>
      <dc:creator>khandelwalanmol</dc:creator>
      <dc:date>2022-03-22T11:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate error while calling API.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803324#M316312</link>
      <description>&lt;P&gt;Perhaps the SSLPARMS statement can help. See this topic:&amp;nbsp;&lt;LI-MESSAGE title="Accept Self-signed certificate with PROC HTTP" uid="755964" url="https://communities.sas.com/t5/SAS-Procedures/Accept-Self-signed-certificate-with-PROC-HTTP/m-p/755964#U755964" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n154smey890g2xn1l6wljfyjcemh.htm" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SSLPARMS statement&amp;nbsp;&lt;/A&gt;can help specify behavior for verifying certificates. Adding the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/p04x46b2ixjswen1u03bvv437x25.htm" target="_self" rel="nofollow noopener noreferrer"&gt;SSLREQCERT= value&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;may help.&lt;/P&gt;
&lt;P&gt;Something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sslparms "sslreqcert"="allow";&lt;/PRE&gt;
&lt;DIV class="UserSignature lia-message-signature"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 22 Mar 2022 12:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803324#M316312</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2022-03-22T12:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate error while calling API.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803756#M316492</link>
      <description>Passed the ssl parm statement. Having same certificate error.</description>
      <pubDate>Thu, 24 Mar 2022 09:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803756#M316492</guid>
      <dc:creator>khandelwalanmol</dc:creator>
      <dc:date>2022-03-24T09:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Certificate error while calling API.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803796#M316511</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/363459"&gt;@khandelwalanmol&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Apparently certificate verification has failed.&lt;BR /&gt;Please have a look here.&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/n183v6l7w6dphwn1giqjw725640c.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/secref/n183v6l7w6dphwn1giqjw725640c.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 14:22:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Certificate-error-while-calling-API/m-p/803796#M316511</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-03-24T14:22:59Z</dc:date>
    </item>
  </channel>
</rss>

