ar90n / serverless-s3-local

Serverless s3 local plugin.
MIT License
213 stars 69 forks source link

Self-Signed Certificates #912

Open sprengerst opened 2 months ago

sprengerst commented 2 months ago

Hi,

is there a way to use self-signed certificates? I get the following error message:

× Uncaught exception
Environment: win32, node 18.19.0, framework 3.38.0 (local), plugin 7.2.0, SDK 4.5.1
Docs:        docs.serverless.com
Support:     forum.serverless.com
Bugs:        github.com/serverless/serverless/issues

Error:
Error: self-signed certificate
    at TLSSocket.onConnectSecure (node:_tls_wrap:1659:34)
    at TLSSocket.emit (node:events:517:28)
    at TLSSocket.emit (node:domain:489:12)
    at TLSSocket._finishInit (node:_tls_wrap:1070:8)
    at ssl.onhandshakedone (node:_tls_wrap:856:12)

With this configuration:

 s3:
    host: 0.0.0.0
    directory: ./tmp-bucket
    cors: ./cors.xml
    allowMismatchedSignatures: true
    httpsProtocol: cert

Thank you, Stefan