[HELP!] I made a mess. Certbot "Can't find a VirtualHost" matching my domain

Please fill out the fields below so we can help you better.

My domain is: www.aspire-network.com

I ran this command: ./certbot-auto --nginx -d www.aspire-network.com -d aspire-netwo rk.com ///// "2"

It produced this output: Cannot find a VirtualHost matching domain www.aspire-network.com

My web server is (include version): CentOS 6

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): Wordpress to manage site content


I have been trying to learn about SSL but I'm very much a novice, and I think I've made a big mess. Someone help?

At the moment, I can't get certbot-auto to recognize my domain name. My first install mistakenly only addressed one domain name (aspire-network.com without the WWW), so it gave security warnings. I apparently made a new certificate for the www version without the first domain, which made two separate certificates that were unassociated (problems!). So I finally revoked both so I could start fresh. But now cert-bot can't find my domain at all! Please help.


Here is the terminal response: (notice how it recognizes the previous certificates)

[root@vultr ~]# ./certbot-auto --nginx -d www.aspire-network.com -d aspire-netwo rk.com
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/init .py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop su pport for Python 2.6
DeprecationWarning
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Cert not yet due for renewal

You have an existing certificate that has exactly the same domains or certificat e name you requested and isn't close to expiry.
(ref: /etc/letsencrypt/renewal/www.aspire-network.com-0001.conf)

What would you like to do?

1: Attempt to reinstall this existing certificate
2: Renew & replace the cert (limit ~5 per 7 days)

Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Renewing an existing certificate
Performing the following challenges:
tls-sni-01 challenge for www.aspire-network.com
tls-sni-01 challenge for aspire-network.com
Cleaning up challenges
Cannot find a VirtualHost matching domain www.aspire-network.com.


Here's the https.conf for wordpress (in the nginx directory):

upstream php-handler-https {
server 127.0.0.1:9000;
#server unix:/var/run/php5-fpm.sock;
}

server {
listen 443 ssl default_server;
server_name www.aspire-network.com, aspire-network.com;
#server_name wordpress.example.com;

ssl_certificate /etc/nginx/ssl/server.crt;
ssl_certificate_key /etc/nginx/ssl/server.key;

root /var/www/html/;
index index.php;

set max upload size

client_max_body_size 2G;
fastcgi_buffers 64 4K;

access_log /var/log/nginx/wordpress_https_access.log combined;
error_log /var/log/nginx/wordpress_https_error.log;

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location / {
try_files $uri $uri/ /index.php?$args ;
}

location ~* .(htaccess|htpasswd) {
deny all;
}

location ~ .php(?:$|/) {
fastcgi_split_path_info ^(.+.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param HTTPS on;
fastcgi_pass php-handler-https;
fastcgi_read_timeout 60s;
}

set long EXPIRES header on static assets

location ~* .(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
access_log off;
}

}


Here's the http.conf for wordpress (in the nginx directory):

upstream php-handler-http {
server 127.0.0.1:9000;
#server unix:/var/run/php5-fpm.sock;
}

server {
listen 80 default_server;
server_name www.aspire-network.com, aspire-network.com;
#server_name wordpress.example.com;

root /var/www/html/;
index index.php;

set max upload size

client_max_body_size 2G;
fastcgi_buffers 64 4K;

access_log /var/log/nginx/wordpress_http_access.log combined;
error_log /var/log/nginx/wordpress_http_error.log;

location = /favicon.ico {
log_not_found off;
access_log off;
}

location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}

location / {
try_files $uri $uri/ /index.php?$args ;
}

location ~* .(htaccess|htpasswd) {
deny all;
}

location ~ .php(?:$|/) {
fastcgi_split_path_info ^(.+.php)(/.+)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass php-handler-http;
fastcgi_read_timeout 60s;
}

set long EXPIRES header on static assets

location ~* .(?:jpg|jpeg|gif|bmp|ico|png|css|js|swf)$ {
expires 30d;
access_log off;
}

}

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