M
M
mal1k2020-04-30 21:23:02
PHP
mal1k, 2020-04-30 21:23:02

How to attach SSL certificates to different openserver domains?

The question of such a plan.
There are several domains that stand on OpenServer. Bought SSL certificates for them.
How to bind SSL to different domains in the same openserver environment? I'm using Apache 2.4 + php 7.2-7.3 + nginx 1.17
Thanks in advance for your help! I searched on Google, looked, I ask you not to send it there)
I found only how to make and bind a self-signed certificate.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadym Masiuk, 2020-04-30
@mal1k

What version of OSPanel? On the example of OSPanel 5.3.7 x64 Apache_2.4-PHP_7.2-7.4 (without NGinx) installed in the root of the C:\ drive, canon-me.com domain , I do this:
1. Create a folder C:\OSPanel\cert\ ssl (cert folder and nested ssl).
2. In the file "Apache_2.4-PHP_7.2-7.3-x64_vhost.conf" change:

SSLCertificateFile          "%sprogdir%/userdata/config/cert_files/server.crt"
SSLCertificateKeyFile       "%sprogdir%/userdata/config/cert_files/server.key"
на
SSLCertificateFile      "%sprogdir%/cert/ssl/%host%.crt"
SSLCertificateKeyFile   "%sprogdir%/cert/ssl/%host%.key"

3. Put the canon-me.com.crt and canon-me.com.key certificate files into the "C:\OSPanel\cert\ssl" folder and restart the panel
4. Repeat step 3 for all hosts
5. Enjoy!
PS: More info here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question