openswoole / docker-openswoole

Docker image for Open Swoole
https://hub.docker.com/r/openswoole/swoole
Apache License 2.0
42 stars 5 forks source link

Wildcard Setting for ssl_sni_certs #42

Closed Wasca closed 8 months ago

Wasca commented 8 months ago

Hello,

I was wondering if the Server Setting ssl_sni_certs can handle wildcard certificates. So in my config it would looks like this...

'ssl_sni_certs' => [
        "*.mydomain.com" => [
            'ssl_cert_file' => "/var/config/star_mydomain_com_cert.pem",
            'ssl_key_file' => "/var/config/star_mydomain_com_key.pem",
        ],
],
Wasca commented 8 months ago

I've solved my own question.

I just needed to use my wild card certificate as the primary certificate.

'ssl_cert_file' => "/var/config/star_mydomain_com_cert.pem",
'ssl_key_file' => "/var/config/star_mydomain_com_key.pem",