I have already achieved an SSL certificate for my domain by certbot
. the configuration is:
<VirtualHost *:80>
ServerAdmin admin@xxx.com
DocumentRoot "/root"
ServerName xxx.com
ServerAlias www.xxx.com
ErrorLog "/var/log/httpd/xxx.error_log"
CustomLog "/var/log/httpd/xxx.access_log" common
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.xxx.com [OR]
RewriteCond %{SERVER_NAME} =xxx.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
now I have installed Postfix SMTP Server and like to get a certificate for mail.xxx.com
as well. how to get ssl certificate for my mail server now?
I have already tried the following command:
sudo certbot certonly --standalone -d mail.xxx.com
which outputs:
Problem binding to port 80: Could not bind to IPv4 or IPv6.