Hi Earest,

please take a look at the documentation chapter about configuring the 
Graylog 2.0.0 web 
interface: http://docs.graylog.org/en/2.0/pages/configuring_webif.html

In case you're using self-signed certificates, the following FAQ entry 
might also be interesting for 
you: 
http://docs.graylog.org/en/2.0/pages/faq.html#i-have-configured-an-smtp-server-or-an-output-with-tls-connection-and-receive-handshake-errors-what-should-i-do

Cheers,
Jochen

On Monday, 9 May 2016 11:24:09 UTC+2, Earest wrote:
>
> Hello,
>
> After some hours trying to configure tls encripting without success, i 
> come here to ask for some help.
>
> *Server configuration :*
>
> Derbian 8
> Graylog 2.0.0
> Mongodb 2.4.10
> Java 8u92+8u91
> Elasticsearch 2.3.2
>
>
> *Graylog tls options *:
>
> rest_enable_tls = true
>> rest_tls_cert_file = /etc/ssl/temp/graylog.pem
>> rest_tls_key_file = /etc/ssl/temp/key_pk8.pem
>> rest_tls_key_password =
>> web_enable_tls = true
>> web_tls_cert_file = /etc/ssl/temp/graylog.pem
>> web_tls_key_file = /etc/ssl/temp/key_pk8.pem
>> web_tls_key_password =
>
>
>
> *Now my tls configuration step by step :*
>
>
> #cert and key creation (-x509 and pkcs10)
>
>> sudo openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout 
>> key.pem -out graylog.pem
>
>
> #converting to pkcs8 as indicated in the conf file
>
>> sudo openssl pkcs8 -nocrypt -topk8 -in key.pem -out key_pk8.pem
>>
>
> #adding cert to keystore
>
>> sudo $JAVA_HOME/bin/keytool -import -alias gray_key -file 
>> /etc/ssl/temp/graylog.pem -keystore /etc/ssl/graylog.jks
>>
>
> #adding keystore to java truststore with the following shell script :
>>
>> #!/bin/bash
>> export JAVA_OPTIONS="-Djavax.net.ssl.trustStore=/etc/ssl/graylog.jks 
>> -Djavax.net.ssl.trustStorePassword=mypassword"
>
>
> After that i restart my graylog server and get some warn in my log 
> (looping without interruption):
>
> 2016-05-09T11:09:48.176+02:00 WARN  [ProxiedResource] Unable to call 
>> https://serverIp:12900/system/metrics/multiple on node 
>> <cf9d4d3b-bfce-4cde-a2e6-db0a7c247ad4>, caught exception: 
>> sun.security.validator.ValidatorException: PKIX path building failed: 
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target (class 
>> javax.net.ssl.SSLHandshakeException)
>> 2016-05-09T11:09:48.178+02:00 WARN  [ProxiedResource] Unable to call 
>> https://serverIp:12900/system/inputstates on node 
>> <cf9d4d3b-bfce-4cde-a2e6-db0a7c247ad4>, caught exception: 
>> sun.security.validator.ValidatorException: PKIX path building failed: 
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target (class 
>> javax.net.ssl.SSLHandshakeException)
>
>
> If i connect to the the web page of graylog all my input are stop and  I 
> can't start them:
>
> I got the following error on the web page (pop-up message):
>
>> Input 'Input_name' could not be started
>> Request to start input 'Input_name' failed. Check your Graylog logs for 
>> more information.
>
>
> And here the associated log :
>
>> 2016-05-09T11:15:28.122+02:00 WARN  [ProxiedResource] Unable to call 
>> https://serverIp:12900/system/inputstates/5727554fe4b0c113c6180c6e on 
>> node <cf9d4d3b-bfce-4cde-a2e6-db0a7c247ad4>, caught exception: 
>> sun.security.validator.ValidatorException: PKIX path building failed: 
>> sun.security.provider.certpath.SunCertPathBuilderException: unable to find 
>> valid certification path to requested target (class 
>> javax.net.ssl.SSLHandshakeException)
>
>
> PS: After adding an exception for login page : https://serverIp:9000/ i 
> need to add one for https://serverIp:12900/system/cluster/node or i get 
> this error :
>
> We are experiencing problems connecting to the Graylog server running on 
> *https://serverIp:12900// 
>> <https://serverIp:12900//>*. Please verify that the server is healthy 
>> and working correctly.
>>
>> You will be automatically redirected to the previous page once we can 
>> connect to the server.
>>
>> Do you need a hand? We can help you 
>> <https://www.graylog.org/community-support>.
>>
>> ------------------------------
>>
>>> This is the last response we received from the server:
>>> Error message
>>> Bad request
>>> Original Request
>>> GET https://serverIp:12900/system/cluster/node
>>> Status code
>>> undefined
>>> Full error message
>>> Error: Request has been terminated Possible causes: the network is 
>>> offline, Origin is not allowed by Access-Control-Allow-Origin, the page is 
>>> being unloaded, etc.
>>> Possible causes: the network is offline, Origin is not allowed by 
>>> Access-Control-Allow-Origin, the page is being unloaded, etc.
>>
>>  
> If you have any question to ask, I stay at your disposal.
>
> Earest
>

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/945cf579-a533-48be-9926-ea8fecee250e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to