Is HTTPS/TLS possible with a CA signed certificate?

I followed the Debian guide to install graylog on a fresh install of Stretch. Then I spent about a day trying to get my openssl CA signed cert and key in a format that wouldn’t crash the JerseyService. I think at the end it didn’t like that the key was encrypted or that the key/cert didn’t have PEM as it’s file extension(even though it was in the X509/PKCS#8 /w PEM format).

Now I’m running into a problem of what to actually put in the server.conf. The config wants a web_listen_uri and rest_listen_uri, which if I put https://FQDN:9000, the server refuses the connection. So I put https://PUBLIC_IP:9000/ which works, but of course is now a problem since the TLS certificate uses the FQDN. I’ve got it working with web and api listen URI pointing to the public IP, and web_endpoint_uri pointing to FQDN but when I look at the graylog logs, it’s full of the following errors

2018-10-19T15:42:51.830-04:00 WARN [ProxiedResource] Unable to call on node <1dfb3f03-fe6e-4cb2-8036-edabaec6c414> PKIX path building failed: unable to find valid certification path to requested target

which I think is going back to the fact that the TLS cert uses the FQDN, but IDK.

IMHO it seems like the config should ask what ports/IP should the Web and API listen on, and it should ask hostname and domain name for them and assemble what it needs out of that.

Did you have seen this part of the documentation?

I read through that documentation and github ext files. I re-issued my key and cert files with the same key usage, etc. as the ext file. Didn’t fix the warnings.

So I tried changing the URIs for everything to what you see below:
web_listen_uri = https://10.x.x.x:9000/
web_endpoint_uri = https://graylog.domain.local:9000/api/
rest_listen_uri = https://10.x.x.x:9000/api/
rest_transport_uri = https://graylog.domain.local:9000/api/

I can access the web interface like before but I’m getting new different warnings/errors in /var/log/graylog-server/server.log

q2018-10-22T13:27:46.820-04:00 WARN [ProxiedResource] Unable to call https://graylog.domain.local:9000/api/system/metrics/multiple on node <1dfb3f03-fe6e-4cb2-8036-edabaec6c414> Failed to connect to graylog.domain.local/
** at okhttp3.internal.connection.RealConnection.connectSocket( ~[graylog.jar:?]**
** at okhttp3.internal.connection.RealConnection.connect( ~[graylog.jar:?]**
** at okhttp3.internal.connection.StreamAllocation.findConnection( ~[graylog.jar:?]**
** at okhttp3.internal.connection.StreamAllocation.findHealthyConnection( ~[graylog.jar:?]**
** at okhttp3.internal.connection.StreamAllocation.newStream( ~[graylog.jar:?]**
** at okhttp3.internal.connection.ConnectInterceptor.intercept( ~[graylog.jar:?]**
** at okhttp3.internal.http.RealInterceptorChain.proceed( ~[graylog.jar:?]**
** at okhttp3.internal.http.RealInterceptorChain.proceed( ~[graylog.jar:?]**
** at okhttp3.internal.cache.CacheInterceptor.intercept( ~[graylog.jar:?]**
** at okhttp3.internal.http.RealInterceptorChain.proceed( ~[graylog.jar:?]**
** at okhttp3.internal.http.RealInterceptorChain.proceed( ~[graylog.jar:?]**
** at okhttp3.internal.http.BridgeInterceptor.intercept( ~[graylog.jar:?]**

IDK where that is coming from. I can’t find it anywhere in the server.conf

Well I figured it out, I think. Debian during install adds the hostname and FQDN to the /etc/hosts file as graylog.domain.local graylog

For whatever reason this causes issues with parts of the API. Removing those entries fixes the problem, but what problems are going to arise from removing it?

Again I think this could have been fixed by requiring hostname and domain name so you know when you are pointing to yourself. I created a case on github that I will update with my finding.


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