Your connection is not private and when i checked certificate it showed invalied and issued to my other server IP instead on which i installed

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: billing.votexh.com

I ran this command:
vim /etc/httpd/conf.d/votexh.conf

<VirtualHost *:80>
ServerAdmin admin@votexh.com
DocumentRoot "/var/www/html"
DirectoryIndex index.html
ServerName votexh.com
ErrorLog "/var/log/httpd/votexh.com.error_log"
CustomLog "/var/log/httpd/votexh.com.access_log" common

yum install epel-release

yum install certbot python2-certbot-apache mod_ssl

certbot --apache -d billing.votexh.com

It produced this output:

Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/billing.votexh.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/billing.votexh.com/privkey.pem
Your certificate will expire on 2021-07-16. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again with the "certonly" option. To non-interactively
renew all of your certificates, run "certbot renew"
Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/billing.votexh.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/billing.votexh.com/privkey.pem
Your certificate will expire on 2021-07-16. To obtain a new or
tweaked version of this certificate in the future, simply run
certbot again with the "certonly" option. To non-interactively
renew all of your certificates, run "certbot renew"

My web server is (include version):

The operating system my web server runs on is (include version): centos 7

My hosting provider, if applicable, is:

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):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

But when i try to open my site it shows Your connection is not private and when i checked certificate it showed invalied and issued to my other server IP ? Why this happen and how to resolve this

2 Likes

Welcome to the Let's Encrypt Community, Uzair :slightly_smiling_face:

It looks like a default self-signed (or snake-oil) certificate is currently installed.

What is the output of this?

sudo apachectl -S

Please put three backticks above and below the output, like this:

```
output
```

2 Likes

...
VirtualHost configuration:
*:443 is a NameVirtualHost
default server static.113.186.251.148.clients.your-server.de (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost static.113.186.251.148.clients.your-server.de (/etc/httpd/conf.d/ssl.conf:56)
port 443 namevhost votexh.com (/etc/httpd/conf.d/votexh-le-ssl.conf:2)
alias billing.votexh.com
*:80 votexh.com (/etc/httpd/conf.d/votexh.conf:1)
...

Above is the result i got after running the command

2 Likes

Thanks

I have resolved the issue myself i follow other instructions

...
add ServerAlias in vim /etc/httpd/conf.d/votexh.conf

and run

certbot --apache
...

it resolved my issue

2 Likes

Glad you got it working. :blush:

1 Like

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