CentOS 7+ Nginx, Error getting validation data

I’m trying to set up letsencrypt on a Nginx server, running on CentOS 7.
The web server is working on http.

My domain is: mirai.klo.pe

I ran this command: certbot --nginx -d mirai.klo.pe --staging

It produced this output: Error getting validation data

My web server is (include version): nginx 1.12.2

The operating system my web server runs on is (include version): CentOS 7.4.1708

My hosting provider, if applicable, is: Digital Ocean

I can login to a root shell on my machine (yes or no, or I don’t know): yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no

Full debug log:
2018-02-27 18:59:22,277:DEBUG:certbot.main:certbot version: 0.21.1
2018-02-27 18:59:22,277:DEBUG:certbot.main:Arguments: [’–nginx’, ‘-d’, ‘mirai.klo.pe’]
2018-02-27 18:59:22,277:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#manual,PluginEntryPoint#nginx,PluginEntryPoint#null,PluginEntryPoint#standalone,PluginEntryPoint#webroot)
2018-02-27 18:59:22,294:DEBUG:certbot.log:Root logging level set at 20
2018-02-27 18:59:22,295:INFO:certbot.log:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-02-27 18:59:22,468:DEBUG:certbot.plugins.selection:Single candidate plugin: * nginx
Description: Nginx Web Server plugin - Alpha
Interfaces: IAuthenticator, IInstaller, IPlugin
Entry point: nginx = certbot_nginx.configurator:NginxConfigurator
Initialized: <certbot_nginx.configurator.NginxConfigurator object at 0x316bf50>
Prep: True
2018-02-27 18:59:22,469:WARNING:certbot.reverter:Certbot hasn’t modified your configuration, so rollback isn’t available.

Turns out this was DNS. Letsencrypt didn’t have the correct record.

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