nxlog is not able to connect to AWS API Gateway on https

Tags: SNI

#1 shribigb

Hi,

I am using om_http module to send windows eventlogs to AWS API Gateway for further processing. I kept HTTPSAllowUntrusted to True. But I keep getting <cloudfront_hostname>:443 connection failure reconnecting in ## seconds. I can POST data to the URI using curl just fine. I believe it is related to SNI support, which was also limiting other tools like wrk, ab, siege https://github.com/wg/wrk/issues/149 . 

Is there any workaround or fix to support SNI?

Thanks,

Shri

#2 bourazaniss
#1 shribigb
Hi, I am using om_http module to send windows eventlogs to AWS API Gateway for further processing. I kept HTTPSAllowUntrusted to True. But I keep getting <cloudfront_hostname>:443 connection failure reconnecting in ## seconds. I can POST data to the URI using curl just fine. I believe it is related to SNI support, which was also limiting other tools like wrk, ab, siege https://github.com/wg/wrk/issues/149 .  Is there any workaround or fix to support SNI? Thanks, Shri

Have you tried om_ssl instead of om_http?

The om_ssl module provides an SSL/TLS transport that  behaves similarly to the om_tcp module, except that an SSL handshake is performed at connection time and the data is received over a secure channel.