caprover / caprover-cli

Command Line Interface for https://github.com/caprover/caprover
72 stars 40 forks source link

Error: self signed certificate #78

Closed nixilb closed 3 years ago

nixilb commented 3 years ago

C:\Users\nisju\Downloads\node\node>caprover login

Login to a CapRover machine...

? CapRover machine URL address, it is "[http[s]://][captain.]your-captain-root.domain": https://captain.mydn.com ? CapRover machine password: [hidden] ? CapRover machine name, with whom the login credentials are stored locally: ooo

Something bad happened: cannot save ooo at https://captain.mydn.com. Error: self signed certificate

githubsaturn commented 3 years ago

Steps to reproduce?

Did you use caprover serversetup to set up your instance?

self signed certificate error shows that you haven't enabled HTTPS on your instance, and are just forcefully redirecting to HTTPS.

This combined with the other issue that you opened tells me that you haven't set up your instance correctly.

Did you point A Record to your IP address? Is your VPS behind a router?

nixilb commented 3 years ago

mmh, did reset all, trying again. (thanks for awesome support by the way).

nixilb commented 3 years ago

didn't reappear.

codespearhead commented 7 months ago

Duplicate of #672

In my case, I installed CapRover v.1.11.1 is via DigitalOcean one-click app and pointed a subdomain from CloudFlare to the vm IP.

As per the documentation, the CloudFlare Proxy and the fact that its free "certificate will [only] cover your zone apex (example.com) and all first-level subdomains".

Hence, disabling the CloudFlare Proxy and using the apex domain instead of a subdomain worked for me.