Cryptpad - can’t pass the welcome screen after the installation

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.14
What app is this about: Cryptpad

Describe your issue

Hello,
I’m new to yunohost and everything as been working pretty well so far except for Cryptpad where I struggle.
I have difficulties with my certificate (see log) but I managed to do a self-signed certificate :
sudo yunohost domain cert install cryptpad.sub.mydomain.tl --self-signed --force

sudo yunohost domain cert install sandbox.cryptpad.sub.mydomain.tl --self-signed --force

I think the CNAME is configured correctly (OVH)

When i try to get to any subapp from Cryptpad, i got an error message in firefox that I can’t bypass (at least not easily for my users…)

Did Not Connect: Potential Security Issue

Firefox detected a potential security threat and did not continue to sandbox.cryptpad.home.teebo.eu because this website requires a secure connection.

What can you do about it?

sandbox.cryptpad.home.teebo.eu has a security policy called HTTP Strict Transport Security (HSTS), which means that Firefox can only connect to it securely. You can’t add an exception to visit this site.

The issue is most likely with the website, and there is nothing you can do to resolve it.

If you are on a corporate network or using antivirus software, you can reach out to the support teams for assistance. You can also notify the website’s administrator about the problem.

Thank you for any tip or even solution :slight_smile:

Share relevant logs or error messages

https://paste.yunohost.org/raw/lababobuxa

probably not. the tricky part is: depends on registrar what’s right. in my case:
i have a domain, let’s say mydomain.de
for cryptpad loginpage i have a cname, pad.mydomain.de
for sandbox domain i have to do a cname sandbox.pad to pad.mydomain.de

Here is my struggle with that and solution as describe by @rodinux

Hi, thanks for your response, I did find a discussion on this, and therefore I put :

sandbox.cryptpad.home 3600 IN CNAME cryptpad.home.teebo.eu.

in my DNS zone at OVH, which seems legit compare to what you say…did I miss stg ?

but you don’t have an letsencrypt on cryptpad.home.teebo.eu

In OVH I got :

cryptpad.home 3600 IN CAA 0 issue "letsencrypt.org"

but when I try to install in on yunohost via

sudo yunohost domain cert install cryptpad.home.teebo.eu

I got the reply :

Info: Now attempting install of certificate for domain cryptpad.home.teebo.eu!
Success! Configuration updated for 'dnsmasq'
Info: Parsing account key...
Info: Parsing CSR...
Info: Found domains: cryptpad.home.teebo.eu, sandbox.cryptpad.home.teebo.eu
Info: Getting directory...
Info: Directory found!
Info: Registering account...
Info: Already registered!
Info: Creating new order...
Info: Order created!
Info: Verifying cryptpad.home.teebo.eu...
Info: cryptpad.home.teebo.eu verified!
Info: Verifying sandbox.cryptpad.home.teebo.eu...
Error: Wrote file to /var/www/.well-known/acme-challenge-public/9weq0jE-895QErhKH4wtFbaaU7-1Qs1WQzBw22_rKYI, but couldn't download http://sandbox.cryptpad.home.teebo.eu/.well-known/acme-challenge/9weq0jE-895QErhKH4wtFbaaU7-1Qs1WQzBw22_rKYI: Error:
Url: http://sandbox.cryptpad.home.teebo.eu/.well-known/acme-challenge/9weq0jE-895QErhKH4wtFbaaU7-1Qs1WQzBw22_rKYI
Data: None
Response Code: None
Response: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:992)>
Error: Certificate installation for cryptpad.home.teebo.eu failed !
Exception: Could not sign the new certificate
Info: The operation 'Install a Let's Encrypt certificate on 'cryptpad.home.teebo.eu' domain' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250428-212056-letsencrypt_cert_install-cryptpad.home.teebo.eu' to get help
Error: Let's Encrypt certificate install failed for cryptpad.home.teebo.eu

and the log that I linked on the original post…

ok, so i think sandbox.pad to cryptpad.home.teebo.eu. is right.

1 Like

Hello,

Can you share the result of yunohost domain list. Do you have the sandbox domain listed in the result ?

Thanks for your interest. Here is the result :

domains: 
  - home.teebo.eu
  - cloud.home.teebo.eu
  - cryptpad.home.teebo.eu
  - notes.home.teebo.eu
  - office.home.teebo.eu
main: home.teebo.eu

and the sandbox is not in as I read it shouldn’t, but I might be mistaken…

The CNAME sandbox is all right
host sandbox.cryptpad.home.teebo.eu
sandbox.cryptpad.home.teebo.eu is an alias for cryptpad.home.teebo.eu.

But you haven’t the letsencrypt… Can you try again

yunohost domain cert install cryptpad.home.teebo.eu

or try force it with the option --no-checks perhaps ??

Thanks, the result is still the same with no-checks.
If i try via the web interface :

Erreur: "500"

Action: "PUT" /yunohost/api/domain/cryptpad.home.teebo.eu/actions/cert.cert_.cert_install

if i try via ssh without the no-check I’ve got a strange message :

Error: The DNS records for domain 'cryptpad.home.teebo.eu' are different to this server's IP. Please check the 'DNS records' (basic) category in the diagnosis for more info. If you recently modified your A record, please wait for it to propagate (some DNS propagation checkers are available online). (If you know what you are doing, use '--no-checks' to turn off these checks.)

but i can still reach the domain, but firefox is even preventing the welcome page with:


Did Not Connect: Potential Security Issue

Firefox detected a potential security threat and did not continue to cryptpad.home.teebo.eu because this website requires a secure connection.

Try by ssh with root user

yunohost domain cert renew cryptpad.home.teebo.eu  --force
Error: The certificate for the domain 'cryptpad.home.teebo.eu' is not issued by Let's Encrypt. Cannot renew it automatically!

that’s a new one!

this just need add in the dns zone cryptpad.home.teebo.eu IN CAA 0 issue "letsencrypt.org"

You can read the dns suggest for domains,

yunohost domain dns suggest domain.tld

I already got it with a 3600 as suggested by the command :

cryptpad.home.teebo.eu. 	3600 	CAA 	0 issue "letsencrypt.org"

why is it cryptpad.home.teebo.eu. ?? it should be like

cryptpad.home 3600 IN CAA 0 issue "letsencrypt.org" 

no ?

Maybe try to add an new DNS entry with

sandbox.cryptpad.home.teebo.eu. 	3600 	CAA 	0 issue "letsencrypt.org"

It’s how my domain name provider (OVH) is presenting it, I merrily did a copy/paste.

The form looks like this :

yes must be this…

Thanks, but I can’t because of the CNAME entry. At least on OVH it is not possible to enter anything else once the cname is in place…

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.