Results 1 to 5 of 5

Thread: X.509 authentication without SSL

  1. #1
    Join Date
    Jan 2009
    Location
    São Paulo, Brasil
    Posts
    7

    Default X.509 authentication without SSL

    Is it possible to use the x.509 features of Spring Security without SSL?
    For an example, the certificate is sent to the application somehow and there it is checked whether the certificate is valid or not, and after that the filters are applied?

    Thank you!

    Alexandre.

  2. #2
    Join Date
    Jun 2007
    Location
    Minsk, Belarus
    Posts
    217

    Default

    You can write custom filter similar to X509PreAuthenticatedProcessingFilter.
    X509PreAuthenticatedProcessingFilter has extractClientCertificate but it is private.

    Then register custom filter, PreAuthenticatedAuthenticationProvider, UserDetailsService, and PreAuthenticatedProcessingFilterEntryPoint.

  3. #3
    Join Date
    Jan 2009
    Location
    São Paulo, Brasil
    Posts
    7

    Default

    Thank you for your answer!

    I wonder if there is any way to ask the browser to send the certificate, just like any SSL client-auth connection, and use the the default X509PreAuthenticatedProcessingFilter.

    Has anyone ever tried something similar before?

    Regards,

    Alexandre.

  4. #4
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    If you are just sending the certificate then there is no authentication involved. The certificate is a public artifact and anyone could potentially obtain or send it. It's the demonstration of the knowledge of the private key matching the certificate which constitutes the authentication So you need to use SSL (or some other approach which involves use of the private key).
    Spring - by Pivotal
    twitter @tekul

  5. #5
    Join Date
    Jan 2009
    Location
    São Paulo, Brasil
    Posts
    7

    Default

    Sorry,the client would send also something digitally signed with the certificate, like a fixed phrase or something like that (maybe even a login).

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •