Graylog 3.2 https, one small problem left

Hi :slight_smile:

graylog 3.2
debian 10
Corporate SSL cert signed by top CA (DigiCert)
The cert is a wilcard cert: *.domain.com

So after spending way to much time to get https up and running, i finally have it working but stuck with one error in the graylog server log when accessing the web interface. I suspect this is due to the wildcard certificate we use. Im guessing the IP would need to be specified in the certificate? (i have no possibility to change the cert)

Do i just have to live with it?

Here is the log output (redacted, and had to break the links as it didnt allow me to post links ):

B
2020-03-06T10:06:23.726+01:00 WARN [ProxiedResource] Unable to call :9000/api/system/metrics/multiple on node <87ead60e-9dab-4b31-818e-87158224d90e>: Hostname 172.29.10.75 not verified:
certificate: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DN: CN= *.domain.com, OU=IT, O=Company IT B.V., L=City, ST=Area, C=NL
subjectAltNames: [ *.domain.com, domain.com]

Here is my settings:(edited as they get detected as links that im not allowed to post)

B
http_bind_address = 0.0.0.0:9000
http_external_uri = web_hostname.domain url:9000/
http_enable_tls = true
http_tls_cert_file = /etc/graylog/ssl/graylog.pem
http_tls_key_file = /etc/graylog/ssl/pkcs8-plain.pem

Note, i was also not able to get a ecrypted PKCS8 private key with passphrase working, despite following the documentation. Kept getting java error ({FAILED=[JerseyService [FAILED]]})

I solved this by using unencrypted key. After reading about someone else with similar problems.

Also Chrome keeps telling me my site is untrusted, while firefox seems to trust it. I will chalk that up to Chrome being a generally crappy browser.

Thinking it may force to use name over IP, I tried to set the http_publish_uri = to same as http_external_uri, but that made web interface unavailable :frowning:

Ok, so i decided to get a clean start and set up the server again on ubuntu 18.04

Everything works, but now a slightly different issue:

B
2020-03-06T15:08:56.232Z WARN [ProxiedResource] Unable to call https://172.29.10.75:9000/api/system/inputstates on node : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I could not even start the input on higher ports, and then set up authbind. Now i have the input at udp 514.

  • In the webui i get error that input doesnt start
  • In the logs it clearly says it starts
  • It is working, logs are flooding in from nodes.

Blockquote
2020-03-06T15:08:37.135Z INFO [InputStateListener] Input [Syslog UDP/5e6260420b6f2e43ed7685e1] is now STARTING
2020-03-06T15:08:37.146Z WARN [UdpTransport] receiveBufferSize (SO_RCVBUF) for input SyslogUDPInput{title=syslog1, type=org.graylog2.inputs.syslog.udp.SyslogUDPInput, nodeId=ad269a19-21a2-41c3-802e-72fa8f915f04} (channel [id: 0x871cfe52, L:/0:0:0:0:0:0:0:0%0:61305]) should be 262144 but is 425984.
2020-03-06T15:08:37.150Z WARN [UdpTransport] receiveBufferSize (SO_RCVBUF) for input SyslogUDPInput{title=syslog1, type=org.graylog2.inputs.syslog.udp.SyslogUDPInput, nodeId=ad269a19-21a2-41c3-802e-72fa8f915f04} (channel [id: 0x585c4beb, L:/0:0:0:0:0:0:0:0%0:61305]) should be 262144 but is 425984.
2020-03-06T15:08:37.154Z INFO [InputStateListener] Input [Syslog UDP/5e6260420b6f2e43ed7685e1] is now RUNNING

Quiet forum this? or im just impatient?

Any how, now left with :

Blockquote
2020-03-09T10:25:26.345Z WARN [ProxiedResource] Unable to call https://172.29.10.75:9000/api/system/metrics/multiple on node : Hostname 172.29.10.75 not verified:
certificate: sha256/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
DN: CN= *.company.com, OU=IT, O=xxxxxx IT B.V., L=Haarlem, ST=Noord-Holland, C=NL
subjectAltNames: [ *.domain.com, domain.com]

As well as the input listed as failed to start, but actually are up and receiving logs.

I thought i found a solution by using self signed for the internal process (rest_tls_cert_file) and our wild card cert for the web interface. But seems like this option has been removed by the "simplified http settings:
https://docs.graylog.org/en/3.2/pages/upgrade/graylog-3.0.html#simplified-http-interface-configuration

Ok seems like i solved the issue by

he @tvalberg

weekend …

but you found the reason for the problem already. Graylog is connecting to itself and if the http_publish used ip or hostname is not part of the certificate it will fail.

Indeed, I was just being impatient :slight_smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.