n1b0r / docker-flow-proxy-letsencrypt

39 stars 16 forks source link

Only combined.pem needed #30

Closed Olvikolvi closed 6 years ago

Olvikolvi commented 6 years ago

Now "generate symlinks " links all files to /certs folder so haproxy gives error..

parsing [/cfg/haproxy.cfg:47] : 'bind *:443' : 'crt-list' : error processing line 2 in file '/cfg/crt-list.txt' : unable to load SSL certificate from PEM file '/certs/mydomain.com.key'.

Olvikolvi commented 6 years ago

I suck with python, but maeby something like this?

            # for each domain, create a symlink for main combined cert.
            for domain in domains:
                for cert_type, cert_extension in cert_types:
                    next if cert_extension != 'pem';