Results 1 to 4 of 4

Thread: logging a missing/invalid x509 cert?

  1. #1
    Join Date
    Mar 2007
    Posts
    128

    Question logging a missing/invalid x509 cert?

    I'm using acegi to front end a web service, and I'm requiring a cert by using the XwsSecurityInterceptor.

    Is there a way to catch when the cert is invalid or not in the trust store so I can log that somewhere?

  2. #2
    Join Date
    Mar 2007
    Posts
    128

    Default

    Hoping a bump will get some more views and an answer,

    Along the same line, I'd like to be able to log the IP address from the incoming request if something in the endpoint fails. Is there a way to get the request information?
    Last edited by sbirnie; Feb 21st, 2008 at 08:41 AM.

  3. #3
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by sbirnie View Post
    I'm using acegi to front end a web service, and I'm requiring a cert by using the XwsSecurityInterceptor.

    Is there a way to catch when the cert is invalid or not in the trust store so I can log that somewhere?
    Well, you can override the KeyStoreCallbackhandler, and do the appropriate logging where you want.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  4. #4
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    Quote Originally Posted by sbirnie View Post
    Hoping a bump will get some more views and an answer,

    Along the same line, I'd like to be able to log the IP address from the incoming request if something in the endpoint fails. Is there a way to get the request information?
    You can always get a reference to the current transport connection from the TransportContextHolder, as explained in the reference docs. See http://static.springframework.org/sp...nsport-context
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

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