- Как поставить Webmin?
- Missing CA certificate
- 2: защита webmin с помощью сертификата let’s encrypt
- Как использовать Webmin?
- How to install apache ssl certificate with webmin
- How we fixed errors related to apache ssl certificate in webmin
- Pre-requirements
- Ssl certificate installation procedures
- Заключение
- Conclusion
Как поставить Webmin?
Мы начнем с добавления репозитория Webmin. С его помощью получится поставить и обновлять консоль в дальнейшем. Репозиторий добавим в файл /etc/apt/sources.list командой:
sudo nano /etc/apt/sources.list
Нам нужно добавить новый репозиторий в конец файла:
Missing CA certificate
Recently, one of our customers had a website issue after installing the Apache SSL certificate in Webmin. The error looked like,
Then our Support Engineers identified that the problem was due to the improper Apache SSL certificate installation in Webmin.
In Virtualmin,
1. We logged into Virtualmin.
2. Then we go to Server Configuration -> Manage SSL Certificate -> CA Certificate.
3. We uploaded the right cert.
4. At last, we restarted the Apache service.
/etc/init.d/apache2 restart
That’s it. This is how we fixed the issue.
2: защита webmin с помощью сертификата let’s encrypt
Для доступа к Webmin вам необходимо указать порт 10000 и убедиться, что этот порт открыт в брандмауэре. Это неудобно, особенно если вы обращаетесь к Webmin, используя FQDN, например webmin.your_domain. Виртуальный хост Apache можно использовать для проксирования запросов на сервер Webmin, работающий по порту 10000. Затем можно защитить виртуальный хост, используя SSL-сертификат от Let’s Encrypt.
Для начала создайте новый виртуальный хост:
sudo nano /etc/apache2/sites-available/your_domain.conf
Добавьте в файл следующие строки (указав свои данные):
Как использовать Webmin?
Консоль Webmin включает в себя большое количество модулей. С их помощью вы сможете управлять сервером и делать все, что захотите: от добавления пользователей в систему до настройки BIND DNS. Попробуйте с помощью консоли обновить пакеты системы и добавить нового пользователя.
Для обновления пакетов используйте ссылку Dashboard. Нам нужно найти поле Package updates. Консоль способна самостоятельно мониторить наличие обновлений. Если они будут, вы увидите их число и ссылку для установки. Кликните по ней, после чего нужно будет нажать Update selected packages.
How to install apache ssl certificate with webmin
SSL is a protocol for establishing secure and authenticated connections across an unsafe network like the Internet.
Let’s see how our Support Engineers installed Apache SSL certificate by using Webmin.
How we fixed errors related to apache ssl certificate in webmin
Let’s see how our Support Engineers fixed errors related to Apache SSL certificate on Webmin.
Pre-requirements
Before the installation process starts, we need some pre-requirements as follows.
1. The OpenSSL should installed in Webmin
2. A generated CSR for the website.
3. Uploaded private key.
4. Need the files “example_com.crt” and “example_com.ca-bundle” from the SSL provider.
Once the Certificate Authority issues the SSL certificate, it is time to install it on the server.
Ssl certificate installation procedures
To install the SSL certificate with Webmin, we took the following steps.
1. We logged into the Webmin interface.
2. Then our Support Engineers clicked on Others > File Manager. Navigate to the folder where the private key contains, then we clicked on File > Upload to current directory in the top right corner. After that, uploaded the certificate (your_domain_name.cer) and the CA Bundle.
3. Once the file is uploaded, go to Server > selectedApache Web server.
4. Then, we clicked on Create Virtual Host and selected Any address and enabled Listen on port.
After that, we filled the following parameters too.
- Port: 443.
- Document Root: Root path of the website that wants to secure.
- Server Name: Website’s domain name.
- Add virtual server to file: Choosed New file under virtual servers directory /etc/apache2/sites-enabled
- Copy directive from: Selected Automatic in the dropdown menu.
After doing these settings, we clicked on Create Now.
4. Now the virtual host listening on port 443 appeared on Apache Web server page.
5. Then we clicked on the newly created server to open its settings, then we clicked on SSL Options.
6. At last, we enabled SSL and disabled SSLv2, SSLv3 and TLSv1. In addition, we specified the paths to the domain certificate, to the private key and to the CA Bundle files in the corresponding fields and clicked Save button.
Заключение
Теперь у вас есть удобная консоль для управления сервером, защищённая доверенным сертификатом. Интуитивно понятный интерфейс Webmin предоставляет множество полезных функций и модулей.
Ознакомьтесь с функциями Webmin самостоятельно. Больше полезной информации можно найти в официальной документации Webmin.
Tags:
Conclusion
In short, Apache SSL certificate is a standard technology for establishing secure and authenticated connections across insecure networks. Today, we saw how our Support Engineers installed Apache SSL in Webmin and fixed related errors.