rht-labs / enablement-docs

Collection of Enablement material for Red Hat Open Innovation Labs
https://rht-labs.github.io/enablement-docs/#/
90 stars 115 forks source link

Disabling cert validation for TLS connections #634

Closed rmarting closed 1 year ago

rmarting commented 2 years ago

This PR fixes the #633 issue.

The request module could check the certifications or not for TLS connections. It seems that in this part of the exercise the cert is validated in the TLS connection. Adding the variable NODE_TLS_REJECT_UNAUTHORIZED(1), that validation is skipped and then it runs successfully

1 - NODE_TLS_REJECT_UNAUTHORIZED

rmarting commented 2 years ago

@springdo We found this issue during the enablement today ... with this fix is working successfully. WDYT?