signer

Java SecurityException : signer information does not match

I recompiled my classes as usual, and suddenly got the following error message, why ? How to fix it ? "java.lang.SecurityException: class "Chinese_English_Dictionary"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:776) ...

Error while enrolling on behalf of another user - None of the signers of the cryptographic message or certificate trust list is trusted

I'm currently writing an application that administrators can use to enroll smartcard logon certificates on behalf of regular users. I have a valid certificate with the EnrollmentAgent template in my certstore, that was issued from the same CA that I enroll the smartcard certificates from. This is my code, based on the CMCOnBehalf.cpp sam...