Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Webservice Security and Windows Certificates

I want to sign webservice requests using Apache CXF and WSS4J. As far as I know, I would need a JKS store containing the certificate I want to use for signing. There's the requirement to be able to use a X.509 certificate from the Windows certificate store. The certificate shall be read from the store at the time of signing the webservice request. I know how to access the store and get the certificate. But how can I use it for signing instead of the certificate from my own JKS store?

like image 467
tobiasbayer Avatar asked Nov 23 '10 07:11

tobiasbayer


1 Answers

The KeyStore need not be a JKS one. You might write your own JCA Provider and implement KeyStoreSpi, and have it access the Windows certificate store.

like image 142
adrianboimvaser Avatar answered Oct 06 '22 23:10

adrianboimvaser