Smartcard cert used for encrypt\decrypt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Does anybody know how to use the smartcard to encrypt and decrypt files?

I was able to encrypt a file using the cert on the smartcard. However, I couldn't decrypt it. I think it's mainly because I don't know how to get the Private Key on the token to decrypt it. I've tried `pkcs11-tool -l --id 0002 -r --type privkey` but I get a "sorry, reading private keys not (yet) supported" message.

To encrypt:
pkcs15-tool -r 0002 > x509.cert
openssl smime -encrypt -binary -aes-256-cbc -in clear.txt -out clear.txt.enc -outform PEM x509.cert

-- 
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux