Page 1 of 1

Received fatal alert: bad_certificate

Posted: Thu Sep 20, 2012 8:22 am
by thiouraye
Hi,
I'm starting with Broadleaf 2.0. I followed the Getting starting and succeeded to connect on site and BO for the first time.
Then I wanted to log out to BO and now I have already the same log on console :
[artifact:mvn] 2012-09-20 15:18:36.059:WARN:oeji.nio:javax.net.ssl.SSLException:WARN:oeji.nio:javax.net.ssl.SSLException: Received fatal alert: bad_certificate
when I try to access to https://localhost:8444/admin/.

I cleaned my project, and installed it any changement.
Have you any idea to solve this problem ?

Thanks
thiouraye

Re: Received fatal alert: bad_certificate

Posted: Thu Sep 20, 2012 8:41 am
by Valdus
Are you running it on the built in Jetty server or a separate server instance?

Re: Received fatal alert: bad_certificate

Posted: Thu Sep 20, 2012 12:28 pm
by thiouraye
hay Valdus !!!
I run it in jetty server.
thanks.

Re: Received fatal alert: bad_certificate

Posted: Thu Sep 20, 2012 12:38 pm
by Valdus
That appears to be a warning at second look, could you please give me more of the log file? Are you failing to log out?

Re: Received fatal alert: bad_certificate

Posted: Mon Sep 24, 2012 2:57 pm
by thiouraye
hay valdus !!!
I am discouraged I know more what to make.
I changed my firefox configuration to accept protocols ssl but nothing makes for it.

Also the I saw the pom.xml of admin this line :
# If left blank, the system will use the non secure url and replace the http with
# https.
asset.server.url.prefix.secure=

but I know not which value to put if value has there

the lg file shaws me :
[artifact:mvn] 2012-09-24 21:00:23.707:INFO:oejsh.ContextHandler:started o.m.j.p.JettyWebAppContext{/admin,file:/C:/Users/pape/Downloads/DemoSite-2.0.0-RC1-1-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/},file:/C:/Users/pape/Downloads/DemoSite-2.0.0-RC1-1-eclipse-workspace/eclipse-workspace/DemoSite/admin/target/admin/
[artifact:mvn] 2012-09-24 21:00:24.342:INFO:/:Initializing Spring FrameworkServlet 'admin'
[artifact:mvn] [ WARN] 21:00:26 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
[artifact:mvn] 2012-09-24 21:00:33.962:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8081
[artifact:mvn] 2012-09-24 21:00:35.041:INFO:oejus.SslContextFactory:Enabled Protocols [SSLv2Hello, SSLv3, TLSv1] of [SSLv2Hello, SSLv3, TLSv1]
[artifact:mvn] 2012-09-24 21:00:35.045:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8444
[artifact:mvn] [INFO] Started Jetty Server
[artifact:mvn] 2012-09-24 21:01:35.993:WARN:oeji.nio:javax.net.ssl.SSLException: Received fatal alert: bad_certificate

Look at the attached file
thanks you

Re: Received fatal alert: bad_certificate

Posted: Mon Sep 24, 2012 3:15 pm
by Valdus
Ah all you need to do is say that you understand the risks. Simply put the certificate you are using is not certified and therefore throws that warning, all you have to do is say that you understand the technical risks and it will show you the admin website.

Re: Received fatal alert: bad_certificate

Posted: Thu Sep 27, 2012 5:39 am
by thiouraye
Thank you valdus!!!
I followed the recommendations. I shot the compartment: " to keep this exception in a permanent way " and it worked
Once again thank you.

Re: Received fatal alert: bad_certificate

Posted: Thu Sep 27, 2012 7:41 am
by Valdus
No problem glad I could be of help ^^.

Re: Received fatal alert: bad_certificate

Posted: Wed Feb 27, 2013 1:37 am
by sam
Hi All,
I am facing same problem, sslException and blank screen showing after using this url https://localhost:8444/admin/
Error log
****************************************
INFO] Started Jetty Server
[artifact:mvn] 2013-02-27 11:03:08.546:INFO:oejs.AbstractConnector:Started SslSelectChannelConnector@0.0.0.0:8444
[artifact:mvn] [ WARN] 11:25:24 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
[artifact:mvn] [ WARN] 11:25:25 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
[artifact:mvn] 2013-02-27 11:25:25.093:WARN:oeji.nio:javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
[artifact:mvn] 2013-02-27 11:25:25.093:WARN:oeji.nio:javax.net.ssl.SSLException: Inbound closed before receiving peer's close_notify: possible truncation attack?
[artifact:mvn] [ WARN] 11:25:25 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
[artifact:mvn] [ WARN] 11:25:25 RuntimeEnvironmentPropertiesConfigurer - Unable to determine runtime environment, using default environment 'development'
[artifact:mvn] 2013-02-27 11:38:20.828:WARN:oeji.nio:javax.net.ssl.SSLException: Received fatal alert: bad_certificate
[artifact:mvn] 2013-02-27 11:38:20.828:WARN:oeji.nio:java.io.IOException: An established connection was aborted by the software in your host machine
***********************************************************
Please suggest us how to rectify it?

Thanks & Regards,
Sam