A
A
Alexander Bondarenko2021-12-02 19:06:01
Digital certificates
Alexander Bondarenko, 2021-12-02 19:06:01

How to set up an ssl certificate for a domain on a VPS?

Hello everyone, tell me how to properly configure a certificate for a domain, I did everything according to this article. The only caveat, I have a domain from another registrar, I reconfigured its dns under the ip of my server, I don’t get errors when I start it, I installed the key and certificates. Just added this part:

SSLEngine on
SSLCertificateFile /etc/ssl/certificate.crt
SSLCertificateKeyFile /etc/ssl/private.key
SSLCertificateChainFile /etc/ssl/ca_bundle.crt

Если добавить этот, со своими данными, будет ошибка:
ServerAdmin   [email protected]
DocumentRoot  /var/www/
ServerName    www.domain.com
ErrorLog      /www/home/logs/error_log

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question