Hi,
I get an error when I deploy a simple node.js application using Planetscale and Prisma.
This is the error:
Error opening a TLS connection: error:16000069:STORE routines:func(0):unregistered scheme:…/deps/openssl/openssl/crypto/store/store_register.c:237:scheme=file, error:80000002:system library:func(0):reason(2):…/deps/openssl/openssl/providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/ssl/certs), error:16000069:STORE routines:func(0):unregistered scheme:…/deps/openssl/openssl/crypto/store/store_register.c:237:scheme=file, error:80000002:system library:func(0):reason(2):…/deps/openssl/openssl/providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/ssl/certs), error:16000069:STORE routines:func(0):unregistered scheme:…/deps/openssl/openssl/crypto/store/store_register.c:237:scheme=file, error:80000002:system library:func(0):reason(2):…/deps/openssl/openssl/providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/ssl/certs), error:16000069:STORE routines:func(0):unregistered scheme:…/deps/openssl/openssl/crypto/store/store_register.c:237:scheme=file, error:80000002:system library:func(0):reason(2):…/deps/openssl/openssl/providers/implementations/storemgmt/file_store.c:267:calling stat(/etc/ssl/certs), error:0A000086:SSL routines:func(0):certificate verify failed:…/deps/openssl/openssl/ssl/statem/statem_clnt.c:1896: (unable to get local issuer certificate)
From what I could understand by logging in with “flyctl ssh console”, the path to the system CA roots
/etc/ssl/certs/ca-certificates.crt
does not exist and was not created by Fly and therefore Planetscale cannot open a TLS connection.
This is Planetscale’s guide to creating a secure connection:
I don’t know how to fix this error and get Planetscale working with Fly.io.
Can you help me? Thank you.