Skip to content

Commit

Permalink
enable SNI on oidc-provider
Browse files Browse the repository at this point in the history
  • Loading branch information
creiche committed Mar 4, 2021
1 parent 9331657 commit bf7c004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-iam/lib/oidc-provider/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function downloadThumbprint(issuerUrl: string) {
if (!purl.host) {
return ko(new Error(`unable to determine host from issuer url ${issuerUrl}`));
}
const socket = tls.connect(port, purl.host, { rejectUnauthorized: false });
const socket = tls.connect(port, purl.host, { rejectUnauthorized: false, servername: purl.host });
socket.once('error', ko);
socket.once('secureConnect', () => {
const cert = socket.getPeerCertificate();
Expand Down

0 comments on commit bf7c004

Please sign in to comment.