I was reading the SSL docs but I have no solution yet. I found this description of the problem wich seems to fit to mine:
Staging
Let’s Encrypt has rate limits for their production/real certificates.
While Trellis will prevent these rate limits from being hit, if you
want to test out LE integration, you can use their staging server to get
a “fake” certificate.
Note that browsers will display an error/warning that they don’t
recognize the Certificate Authority so this should only be used for
testing purposes.
So, I put this variable into group_vars/staging/main.yml
Then, I reprovision server and the problem remains.
Any help will be appreciated.
DNS management is outside Digital Ocean (until old web stops). I have an A record in the domain provider: stage.lolafonseca.com pointing to my DO droplet IP
I still researching about www prefix and redirection.
Ok, so problem persists with right DNS: Browser alerts that is a insecure server. On a staging server. I gess this warning will disappear on production.
I read caerfully the SSL docs and my configuration seems to be all right.
What is your configuration? Also, are you able to check your server logs for any mention of a problem? What about the terminal output during provisioning?
Note that browsers will display an error/warning that they don’t recognize the Certificate Authority so this should only be used for testing purposes.
If you want to use that fake cert authority to avoid rate limits on staging, be sure to only define letsencrypt_ca with that staging cert authority in a group_vars/staging file.
If you want a real cert for production, be sure you are not defining letsencrypt_ca with that staging cert authority anywhere in group_vars/all or group_vars/production etc.
As for www.stage.lolafonseca.com, I haven’t looked closely but it may be an instance of the as-yet-unresolved issue of www + subdomains not redirecting, as reported in response to roots/trellis#570. If that is relevant, there is more discussion here Problems with .com.au domains?
Ok so you’re just using multiple domains on one box without multisite. Please try this: Let’s Encrypt issue when adding new domain to multisite and add -vvvv to the end of the command in step #3. Paste output so we can see it. Thanks!
@aitor reviewing your pasted output, I don’t see any letsencrypt tasks running. This leaves me wondering if you’re running an older version of Trellis before the letsencrypt role was added. Please confirm whether the letsencrypt role appears in these places: