question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NODE_TLS_REJECT_UNAUTHORIZED ?

See original GitHub issue
$ sitemap-generator http://persagen.com/ /mnt/Vancouver/domains/PERSAGEN.com/2.0/sitemap.xml
(node:9038) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0'
makes TLS connections and HTTPS requests insecure by disabling certificate verification.

$ sitemap-generator -V
6.2.5

0 byte sitemap.xml generated

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
victoriastuartcommented, Nov 27, 2018

@lgraubner : thank you for looking into this Issue (appreciated). The uptime on my computer (Arch Linux) was significant, ~40d or so (enough for a couple of linux kernel updates to have transpired).

Operating that long without rebooting eventually causes issues, so I rebooted this morning, and just now re-ran the sitemap generator. It appeared to run fine (now), despite the NODE_TLS... warning, generating a 24.6KiB sitemap.xml file.

tl/dr: appears to be working fine, now.

$ time  sitemap-generator  http://persagen.com/  2.0/sitemap.xml                                    
(node:7828) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' 
makes TLS connections and HTTPS requests insecure by disabling certificate verification.
4:37.08

$ head -n20 sitemap.xml | grep loc
    <loc>http://persagen.com/</loc>
    <loc>http://persagen.com/about/</loc>
    <loc>http://persagen.com/contact/</loc>
    <loc>http://persagen.com/resources.html</loc>
    <loc>http://persagen.com/specialities.html</loc>
    <loc>http://persagen.com/sitemap.html</loc>

$ tail -n20 sitemap.xml | grep loc
    <loc>https://persagen.com/files/misc/Recursive_CTE-CTE.pdf</loc>
    <loc>https://persagen.com/files/misc/reading_a_postgres_EXPLAIN_ANALYZE_Query_Plan.pdf</loc>
    <loc>https://persagen.com/files/misc/Recursive_CTE-Big_O.pdf</loc>
    <loc>https://persagen.com/files/misc/Recursive_CTE-Finding_Circular_References_in_Postgres.pdf</loc>
    <loc>https://persagen.com/files/misc/Recursive_CTE-Topological_Sort.pdf</loc>
    <loc>https://persagen.com/files/misc/introduction_to_Algorithm_complexity_analysis.pdf</loc>
1reaction
lgraubnercommented, Nov 27, 2018

@templeman Thanks for your feedback.

@victoriastuart Actually I just generated a sitemap for your site without any problems. This seems to be a different problem. Can you try with a different path? Do you have proper permissions?

The warning will be fixed in the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TLS what exactly does 'rejectUnauthorized' mean for me?
rejectUnauthorized : If true , the server certificate is verified against the list of supplied CAs. An error event is emitted if verification ......
Read more >
How to Resolve Certificate Errors in a NodeJS App with SSL ...
A practical guide to resolving SSL certificate errors · SSL Handshake · Deep Dive Into TLS Handshake · Quick and Dirty Fix: rejectUnauthorized...
Read more >
TLS (SSL) | Node.js v19.3.0 Documentation
Clients always request a server certificate. Servers ( isServer is true) may set requestCert to true to request a client certificate. rejectUnauthorized :...
Read more >
TLS Socket "rejectUnauthorized" - How am I supposed to use it?
If I set Client "rejectUnauthorized: false" I'd get error "Error: self signed certificate" and I cannot connect, because it seems that it ...
Read more >
HTTPS certificate non-validation vulnerability in Node.js
The key here is rejectUnauthorized . This Node.js option configures whether the request will check that the server's certificate is valid. If this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found