-
Notifications
You must be signed in to change notification settings - Fork 640
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with Single Sign-On on TheHive with X.509 Certificates #600
Comments
According to the log messages, your browser doesn't user client certificate to connect to TheHive. |
I think so. the certificate: issued by: How can I put debug flags |
If you run the command |
It's what happening: subject=/C=FR/O=ddddddd/OU=0002 13000548100010/CN=sl00z2 No client certificate CA names sent
|
I confirm the bug. I'm trying to find a solution. |
I also noticed when testing that when visiting the site I am never prompted for the client side certificate. The docs also do not mention what auth.type should be in the configuration in order to use PKI, is it still |
@billmurrin |
The issue has been fixed by the commit TheHive-Project/elastic4play@5471549, which will be included in the next release. |
Thank you,
Do you know when the next release will be publish ?
De : To-om [mailto:[email protected]]
Envoyé : lundi 11 juin 2018 10:47
À : TheHive-Project/TheHive
Cc : FAURE Eric (DGA SYSTEMES D INFORMATION); Author
Objet : Re: [TheHive-Project/TheHive] Error with Single Sign-On on TheHive with X.509 Certificates (#600)
The issue has been fixed by the commit TheHive-Project/elastic4play@5471549<TheHive-Project/elastic4play@5471549>, which will be included in the next release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#600 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AmGxTjD22EtPNYSQDq3jnL-op1ZTY738ks5t7i6LgaJpZM4Ua3ly>.
|
Error with Single Sign-On on TheHive with X.509 Certificates
Request Type
Bug /
Work Environment
Problem Description
I configure thehive as described in the documentation etwhen I try to logon by ssl I have the logon screen and in the log there are errors about certificate/pki:
[warn] application - /applis/xagcla/pur/xagcla02/par/application.conf: 50: auth.type is deprecated, use auth.provider instead
[error] s.TheHiveAuthSrv - Authentication module pki not found
[info] play.api.Play - Application started (Prod)
[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0.0.0.0:9000
[info] p.c.s.AkkaHttpServer - Listening for HTTPS on /0.0.0.0:9443
[warn] application - /applis/xagcla/pur/xagcla02/par/application.conf: 5: play.crypto.secret is deprecated, use play.http.secret.key instead
[warn] application - /applis/xagcla/pur/xagcla02/par/application.conf: 5: play.crypto.secret is deprecated, use play.http.secret.key instead
[error] o.e.c.Authenticated - Authentication failure:
session: AuthenticationError User session not found
pki: AuthenticationError Certificate doesn't contain user information
key: AuthenticationError Authentication header not found
basic: AuthenticationError Authentication header not found
init: AuthenticationError Use of initial user is forbidden because users exist in database
[info] o.e.ErrorHandler - GET /api/user/current returned 401
org.elastic4play.AuthenticationError: Authentication failure
at org.elastic4play.controllers.Authenticated.$anonfun$getContext$4(Authenticated.scala:220)
at scala.concurrent.Future.$anonfun$flatMap$1(Future.scala:304)
at scala.concurrent.impl.Promise.$anonfun$transformWith$1(Promise.scala:37)
at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:60)
at akka.dispatch.BatchingExecutor$AbstractBatch.processBatch(BatchingExecutor.scala:55)
at akka.dispatch.BatchingExecutor$BlockableBatch.$anonfun$run$1(BatchingExecutor.scala:91)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at scala.concurrent.BlockContext$.withBlockContext(BlockContext.scala:81)
at akka.dispatch.BatchingExecutor$BlockableBatch.run(BatchingExecutor.scala:91)
at akka.dispatch.TaskInvocation.run(AbstractDispatcher.scala:40)
Steps to Reproduce
Config in application.conf:
https.port: 9443
play.server.https.keyStore {
path: "/applis/yyyyy.jks"
type: "JKS"
password: "xxxxxxx"
}
play.server.https.trustStore {
path: "/applis/yyyyy.jks"
type: "JKS"
password: "xxxxxxx"
}
auth.method.pki = true # enable PKI authentication method
auth.pki.certificateField = uid
auth {
# "type" parameter contains the authentication provider(s). It can be multi-valued, which is useful
# for migration.
# The available auth types are:
# - services.LocalAuthSrv : passwords are stored in the user entity within ElasticSearch). No
# configuration are required.
# - ad : use ActiveDirectory to authenticate users. The associated configuration shall be done in
# the "ad" section below.
# - ldap : use LDAP to authenticate users. The associated configuration shall be done in the
# "ldap" section below.
type = [pki,local]
The text was updated successfully, but these errors were encountered: