This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Services and the fly likes WSSecurityException: General security error (No certificates for user were found for signature) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSSecurityException: General security error (No certificates for user were found for signature)" Watch "WSSecurityException: General security error (No certificates for user were found for signature)" New topic
Author

WSSecurityException: General security error (No certificates for user were found for signature)

makenshi white
Greenhorn

Joined: Dec 22, 2013
Posts: 1


I am using Axis 1.5 and WSS4j 1.5 (I know, old), and It can't find my private key I've listed in my KeyStore. I have tried finding the PrivateKey by SHA1 Hash, and also by Certificate Alias.

This question has been asked before on StackExhange, but their problem, was that their certificate type in the KeyStore wasn't a "PrivateKeyEntry". Mine is. See:




My Crypto File:



My WSDD:



I have tried combinations of both



For both "user", and "signatureUser".

Here is my Password Callback Class:



However, when I do all of this programatically (setup my own handlers, initiate a WSSecBuilder, and do a Builder.setUserInfo(User, Pw), It can find the PrivateKey O.K.

I have tried everything possible, has anyone else ever had this problem? Or does anyone know something that I may be doing wrong? A known bug with the older axis'? I've tried different keystore types, pkcs12, etc, and all yield the same error.... "General security error (No certificates for user"

Any help would be greatly appreciated! I am pulling my hair out.


 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: WSSecurityException: General security error (No certificates for user were found for signature)
 
It's not a secret anymore!