lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.07k stars 216 forks source link

self-signed certificates are not supported #84

Closed ployt0 closed 5 months ago

ployt0 commented 2 years ago

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.

fcharlaix-opendsi commented 1 year ago

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
ployt0 commented 1 year ago

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