Back

Getting ✗ Error self-signed certificate in CLI

  • 0
  • Tools
Vedsaga
21 Jun, 2023, 12:04

I am trying to login in CLI and getting ✗ Error self-signed certificate

pref.json is

TypeScript
{
    "endpoint": "https://abc.example.com/",
    "cookie": "",
    "key": "",
    "selfSigned": "true"
}
TL;DR
User is getting a "✗ Error self-signed certificate" when trying to login in CLI. They have a `pref.json` file with the self-signed set to "true". The suggestion is to change it to boolean, so `"selfSigned": true`. User reports that it is still not working and shows a "✗ Error Not Found". Another user suggests checking the CNAME config, but it seems fine. User asks if SSL needs to be enabled for the parent domain only, to which another user replies that it doesn't sound like a requirement. User is asked to check the logs of the `docker logs appwrite` and
Vedsaga
21 Jun, 2023, 12:06

server version 1.3.71 cli version 2.0.2

Vedsaga
21 Jun, 2023, 12:07

it seems, SSL is not yet generated for some reason 👀 , it have been quite a while...

Vedsaga
21 Jun, 2023, 12:11

Certificate seems to have been generated still it showing SSL is not there

Vedsaga
21 Jun, 2023, 12:12
TypeScript
The certificate is not trusted because it is self-signed.
 
Error code: MOZILLA_PKIX_ERROR_SELF_SIGNED_CERT
Bouahaza
21 Jun, 2023, 12:37

selfSigned need to be boolean

Bouahaza
21 Jun, 2023, 12:37

"selfSigned": true instead of "selfSigned": "true"

Vedsaga
21 Jun, 2023, 12:45

seems still not working,

TypeScript
Error Not Found
Bouahaza
21 Jun, 2023, 12:48

Don't you forgot v1 at end of endpoint ?

Vedsaga
21 Jun, 2023, 12:49

yaa right

Vedsaga
21 Jun, 2023, 12:50

thank you

Vedsaga
21 Jun, 2023, 12:51

any idea about the SSL part?

Bouahaza
21 Jun, 2023, 12:52

Check you'r CNAME config

Vedsaga
21 Jun, 2023, 12:56

those seems fine

Vedsaga
21 Jun, 2023, 17:30

does SSL needs to be enabled for parent domain only then on child domain SSL gets enabled?

Binyamin
21 Jun, 2023, 17:34

It doesn't sounds like a requirement

What are the logs of:

TypeScript
docker logs appwrite 
docker logs appwrite-worker-certificates

Check list:

  • Have you added the domain as a custom domain to any of your projects?
  • Check the logs again after running docker exec -it appwrite ssl
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more