Generate DNS server certificate

I'm in need of help with a situation.

Today at the company I have an internal DNS server on Centos 7.
And it already has a certificate service for a site for example: www.example1.com.br
Today the need arose to have another site for example: www.exemplo2.com.br

But when we use the command certbot --apache -d example2.com.br it doesn't work

In addition to this command, is it necessary to perform another procedure?

It is difficult to say without more details. But, have you setup your public DNS with the correct public IP that routes to that new domain?

Please provide more details especially the exact error message you receive

===========================

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:

I ran this command:

It produced this output:

My web server is (include version):

My hosting provider, if applicable, is:

The version from certbot --version:

4 Likes

It happens:

[root@web3 ~]# certbot --apache -d example2.com.br
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Starting new HTTPS connection (1): acme-v02.api.letsencrypt.org
Requesting a certificate for example2.com.br

We were unable to find a vhost with a ServerName or Address of example2.com.br.
Which virtual host would you like to choose?


1: virtual-hosts.conf | example1.com.br | | Enabled
2: ssl.conf | | HTTPS | Enabled
3: inbound-vendas.conf | example1.com.br | HTTPS | Enabled


Select the appropriate number [1-3] then [enter] (press 'c' to cancel):

Run that through a thranslator.
It explains the problem quite well.

5 Likes

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