![]()
I am open for different approaches to solve this problem. WINDOWS KEYSTORE EXPLORER VERIFICATION("the verification result "+ isValidSignature) Signature verifier = Signature.getInstance("SHA1withRSA", p) īoolean isValidSignature = verifier.verify(signature) ![]() Signature sig = Signature.getInstance("SHA1withRSA") īyte signature = sig.sign() //<- Here asks for PIN second time. _PK = Base64Utils.base64Encode(oPublicCertificate.getPublicKey().getEncoded()) īyte data ="Data for signing".getBytes() ("Public Key:"+oPublicCertificate.getPublicKey()) ("serial:"+oPublicCertificate.getSerialNumber()) ("gettype:"+oPublicCertificate.getType()) PrivateKey oPrivateKey = (PrivateKey) keystore.getKey(alias,null) X509Certificate oPublicCertificate = (X509Certificate) keystore.getCertificate(alias) String aliass = (String) aliasses.nextElement() WINDOWS KEYSTORE EXPLORER CODEHere is part of the code used in my applet: keystore = KeyStore.getInstance("Windows-MY", "SunMSCAPI")
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |