Score:0

Why does this try to use the wrong path?

st flag

The nginx tries to access the key at /etc/nginx which is wrong, because nginx or openssl allows to use variables. Did I use/set it wrong?

server {
        listen 80 default_server;
        listen [::]:80 default_server;

        index main.html index.html index.htm index.nginx-debian.html;
        server_name   ~^(?<pre>.+\.)?(?<domain>.+)\.(?<post>.+)$ _;

        listen [::]:443 ssl http2 ipv6only=on; # managed by Certbot
        listen 443 ssl http2; # managed by Certbot
        listen 8448 ssl http2;
        listen [::]:8448 ssl http2 ipv6only=on;
        ssl_certificate /etc/letsencrypt/live/$domain.$post/fullchain.pem; # managed by Certbot
        ssl_certificate_key /etc/letsencrypt/live/$domain.$post/privkey.pem; # managed by Certbot
        include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
        ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
Richard Smith avatar
jp flag
Unfortunately, I think you need to use variables which are available during SNI negotiation. Which probably limits you to `$ssl_server_name` as shown in the [documentation](http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_certificate).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.