redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

Allow self signed certificate when request openapi json from website

Open jackykwan-eventx opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

When i use redoc-cli to build, i can't generate html with url under self signed cert

npx redoc-cli build  URL_WITH_SELF_SIGNED_CERT

This is the error message

Error: request to URL_WITH_SELF_SIGNED_CERT failed, reason: self signed certificate
    at BaseResolver.<anonymous> (/home/user/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/@redocly/openapi-core/lib/resolve.js:117:23)
    at Generator.throw (<anonymous>)
    at rejected (/home/user/.npm/_npx/088c5868f11c5564/node_modules/redoc-cli/node_modules/@redocly/openapi-core/lib/resolve.js:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Describe the solution you'd like

simular to curl, a -k or --insecure options allow to bypass the cert check will be great

jackykwan-eventx avatar Mar 03 '23 09:03 jackykwan-eventx

Thanks @jackykwan-eventx , this is a good suggestion.

lornajane avatar Mar 24 '23 17:03 lornajane

Perhaps this could be an option in the per-API configuration?

drwpow avatar Nov 21 '23 16:11 drwpow