LuckyBX Русский
Sites

Certificates

A new site gets a temporary self-signed certificate. Browsers complain about it, so issue a real one.

Let's Encrypt#

luckybx site cert shop.example.com le

The certificate is free and renews by itself. Before issuing it the command checks that the domain and all its names point to this server. Port 80 must be open.

Your own certificate#

luckybx site cert shop.example.com own certificate.pem key.pem

The certificate file must contain the whole chain.

Only https#

luckybx site option shop.example.com https_redirect on

Along with this the site asks browsers to remember for a year that it may be opened only over https. So after that the certificate must stay real.

Back to self-signed#

luckybx site cert shop.example.com self

The redirect to https is turned off by itself.

With a self-signed certificate the Bitrix "System check" opened over https shows a socket error. Bitrix connects to itself and does not trust such a certificate. With Let's Encrypt the error goes away.