Send logs with SSL to a self-signed server
ghost974 opened this issue · 1 comments
ghost974 commented
I'm trying to use winston-logstash to send logs to HAProxy 1.5 which is listening on 443 and forwarding packet to a local logstash instance.
When i'm testing with with "openssl s_client -connect xxxx:443 -cert xxx.crt -key xxx.key", everything is working as long as the server certificate on HAProxy is a real one, signed by a trusted CA.
When I use a self-signed, "openssl s_client -connect xxxx:443 -cert xxx.crt -key xxx.key -CAfile xxx.pem" works, but with winston, even by adding the "ca" parameter, it's not working.
Is that a bug ?
ghost974 commented
I was giving "ca" a file path, instead of an array of file. Also the common name needs to be set to a name and not an ip, somehow this is not working.