-
I am having an issue when attempting to forward a buffer from a client fluentD to a server via TLS and making use of TLS certificates. The 2 clients have no issues connecting to each other but when attemting to send this buffer message I get a "#0 got unrecoverable error in primary and no secondary error_class=NoMethodError error="undefined method "ascii_only?" for nil:NilClass" error, in particular this comes from /usr/lib/ruby/3.0.0/openssl/ssl.rb:309:in "verify_hostname". For additional background I have successfully had these 2 machines communicating in a similar method without TLS, I am attempting to encrypt this traffic and the introduction of the TLS transport method from the forward documentation is where these issues were introduced. Secondly using the most barebones of that TLS system has worked to communicate with this given certificate. Any help understanding my issue would be greatly appreciated! Attempted message to send over buffer. Client conf:
Server Conf:
Full Error trace:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
https://github.com/ruby/ruby/blob/master/ext/openssl/lib/openssl/ssl.rb#L298-L304
|
Beta Was this translation helpful? Give feedback.
I've overlooked the actual logic.
It seems that not san.ascii_only? but hostname.ascii_only was called.
In this case hostname is always nil so the solution is something like in client side:
tls_verify_hostname false
will work.