lgraubner / sitemap-generator

Easily create XML sitemaps for your website.
MIT License
413 stars 130 forks source link

Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. #81

Closed ghost closed 4 years ago

ghost commented 4 years ago

Do you want to request a feature or report a bug? IDK What is the current behavior? When I'm trying to crawl my website via https I'm getting warning and the stop of the process. Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. Using with http is working.

Can anyone explain what is a problem?

lgraubner commented 4 years ago

https://nodejs.org/api/cli.html#cli_node_tls_reject_unauthorized_value

The purpose this is used is to allow sitemap generation for development sites which might have non secure SSL certificates. I might factor this out and put this in the responsibility of the user.

You can ignore this.