title: PowerBI + Snowflake (AWS privateLink): 'SSL peer certificate or SSH remote key was not OK'
body: <ul>
  <li>PowerBI: Version: 2.86.727.0 64-bit (October 2020)</li>
  <li>ODBC Connector: PowerBI's integrated Snowflake ODBC connector (out of the box one)</li>
  <li>Snowflake: .southeast-2.privatelink.snowflakecomputing.com</li>
  <li>Authentication: OAuth2.0 integration with AAD</li>
  </ul>
  <p>Error Message while connecting from PowerBI:</p>
  <pre><code>Details: &quot;ODBC: ERROR [HY000] [Microsoft][Snowflake] (4) 
        REST request for URL https://bhp_dev.ap-southeast-2.privatelink.snowflakecomputing.com:443/session/v1/login-request?requestId=6100abf5-7441-4dc8-8b86-35f44ca0e94c&amp;request_guid=257da304-137e-4e39-95b0-edfff416fb0d&amp;warehouse=COST_MONITOR 
      failed: CURLerror (curl_easy_perform() failed) - code=60 msg='SSL peer certificate or SSH remote key was not OK' osCode=9 osMsg='Bad file descriptor'
  </code></pre>
  <p>Snowflake setup:</p>
  <ul>
  <li>created a security integration to enable SSO as per the <a href="https://docs.snowflake.com/en/user-guide/oauth-powerbi.html" rel="nofollow noreferrer">doco link</a></li>
  <li>created a network policy to include the PowerBI and PowerQueryEditor network addresses</li>
  <li>assigned the network policy to a user</li>
  </ul>
  <p>PowerBI setup:</p>
  <ul>
  <li>nothing special.</li>
  </ul>
  <p>The SSO works ok when the Snowflake is not using private links.</p>
  <p>Any ideas would be greatly appreciated.</p>