Well, is it a PKCS #11 public key? JSS can only work with keys that it possesses. You can't give it a public key you created with the JDK.
Patrick wrote: >I get this error when doing a sig.initVerify(pubKey), using JSS' Signature: > >java.security.InvalidKeyException: publicKey is not a PKCS #11 public key > >at >org.mozilla.jss.pkcs11.PK11Signature.engineInitVerify(PK11Signature.java:172 >) > >at org.mozilla.jss.crypto.Signature.initVerify(Signature.java:95) > >when I use Sun's java.security.Signature, I don't get that error... > >-- P > > >
