Skip to content

Self signed certificate error #114

Closed
@kel666

Description

@kel666

My dev machine use swagger endpoint on https with a self-signed certificate.
If I run swagger-typescript-api I get this error:

(node:14680) UnhandledPromiseRejectionWarning: Error: self signed certificate in certificate chain at TLSSocket.onConnectSecure (_tls_wrap.js:1498:34) at TLSSocket.emit (events.js:315:20) at TLSSocket._finishInit (_tls_wrap.js:940:8) at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:698:12) (Use node --trace-warnings ...to show where the warning was created) (node:14680) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:14680) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Would be possibile to add an options to accept also self-signed certiificate?

Tnx
Fabio

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions