Graylog 3.1 setting up TLS single node


i have troubles to set up tls for my graylog server.

i import the ova version 3.1 with ubuntu. Graylog works great without tls settings.

First I configured the nginx with tls - this works nice so i come to the site with tls, but the site says graylog is currently not reachable…

I also configured the server.conf file with the tls settings and added the public cert to a copy of a java certstore and added the lines “” in the file /etc/default/graylog-server.

The graylog-server log says:

2019-11-03T18:05:11.127+01:00 ERROR [ServerBootstrap] Unable to shutdown properly on time. {STOPPING=[JobSchedulerService [STOPPING]], TERMINATED=[InputSetupService [TERMINATED], PeriodicalsService [TERMINATED], StreamCacheService [TERMINATED], OutputSetupService [TERMINATED], MongoDBProcessingStatusRecorderService [TERMINATED], JournalReader [TERMINATED], BufferSynchronizerService [TERMINATED], LookupTableService [TERMINATED], EtagService [TERMINATED], GracefulShutdownService [TERMINATED], ConfigurationEtagService [TERMINATED], KafkaJournal [TERMINATED]], FAILED=[JerseyService [FAILED]]}
2019-11-03T18:05:11.128+01:00 ERROR [ServerBootstrap] Graylog startup failed. Exiting. Exception was:
java.lang.IllegalStateException: Expected to be healthy after starting. The following services are not running: {FAILED=[JerseyService [FAILED]]}
at$ServiceManagerState.checkHealthy( ~[graylog.jar:?]
at$ServiceManagerState.awaitHealthy( ~[graylog.jar:?]
at ~[graylog.jar:?]
at org.graylog2.bootstrap.ServerBootstrap.startCommand( [graylog.jar:?]
at [graylog.jar:?]
at org.graylog2.bootstrap.Main.main( [graylog.jar:?]
Suppressed:$FailedService: JerseyService [FAILED]
Caused by: ObjectIdentifier() – data isn’t an object ID (tag = 48)
at ~[?:1.8.0_222]
at ~[?:1.8.0_222]
at com.sun.crypto.provider.PBES2Parameters.engineInit( ~[sunjce_provider.jar:1.8.0_222]
at ~[?:1.8.0_222]
at ~[?:1.8.0_222]
at ~[?:1.8.0_222]
at ~[?:1.8.0_222]
at javax.crypto.EncryptedPrivateKeyInfo.( ~[?:1.8.0_222]
at ~[graylog.jar:?]
at ~[graylog.jar:?]
at org.graylog2.shared.initializers.JerseyService.buildSslEngineConfigurator( ~[graylog.jar:?]
at org.graylog2.shared.initializers.JerseyService.startUpApi( ~[graylog.jar:?]
at org.graylog2.shared.initializers.JerseyService.startUp( ~[graylog.jar:?]
at$DelegateService$ ~[graylog.jar:?]
at$ ~[graylog.jar:?]
at ~[?:1.8.0_222]

Can anyone help me out or have any tips for me?

what are your http_* settings in your Graylog configuration?

Hey jan thanks for your response :slight_smile:

http_bind_address =

http_enable_tls = true
http_tls_cert_file = /etc/graylog/server/certs/graylog-public.pem
http_tls_key_file = /etc/graylog/server/certs/graylog-private.pem
http_tls_key_password = password

all other settings are default

does the certificate contain all possible IPs that the Server has assigned? Because you used a wildcard for bind Graylog will use “the first” ip to set the publish uri too and if that is not included in the certificate Graylog will fail to connect to itself.

in the certificate is one ip address what I configured in the netplan

there are just 2 network interfaces up - should i add the loopback address in the certificate?

if i change the “http_bind_address” to the private address which is in the certificate the same error comes

and the jks contain the certificate / ca that the certificate can be verified?

yes i added the public cert in the jks

happy birthday jan :smiley:

do you have any idea whats the problem is or do you have more tips?

He @happydayxxl

i checked for the error message in the stack trace and found the following:

maybe that is something that is related to you.

hey @jan

I checked out my jks:

Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

i used that doc to generate my key:

my error is:

Caused by: ObjectIdentifier() – data isn’t an object ID (tag = 48)

one more question should the public key which i added at server.conf with out parameters “bag attributes” or “subject”?
And should it include the issuing certs as well?

Could be that my problem or is it in my jks?

sorry I do not know how to use the windows ca - maybe @Totally_Not_A_Robot can jump in?