lonekorean/wordpress-export-to-markdown

self-signed certificates are not supported

Closed this issue · 2 comments

I was tracing the issue with images going missing (turns out all webp do) and other things that could be scripted and my local WordPress exporting server could be reached, but this repo would baulk at the self signed certificate.

As a workaround, you can always use the environment variable NODE_EXTRA_CA_CERTS

An example :

$ NODE_EXTRA_CA_CERTS="/usr/local/share/ca-certificates/lan.crt" npx wordpress-export-to-markdown --input /tmp/WordPress.xml --output /tmp/output --year-folders false --month-folders false --post-folders false --prefix-date false --save-attached-images true --save-scraped-images true --include-other-types true

An application user should not need to worry about the environment in which their application runs.