polhenarejos / pycvc

Card Verifiable Certificates (CVC) tools for Python
https://www.picokeys.com
GNU General Public License v3.0
13 stars 3 forks source link

Does pycvc support RSA-based certificate generation and verification? #1

Closed rathorearvind19 closed 1 year ago

rathorearvind19 commented 1 year ago

I am trying to create RSA based certificate but running into this issue here:

File "*\Anaconda3\lib\site-packages\cvc\asn1.py", line 40, in make_tag return to_bytes(tag) + ASN1.calculate_len(len(b)) + bytearray(b) TypeError: object of type 'int' has no len()

Command I used with RSA-2K key generated using openssl: cvc-create --role=cvca --type=at --chr=ZZATCVCA00001 --valid=365 --sign-key=ZZATCVCA00001.pkcs8 --scheme=RSA_v1_5_SHA_256

Does the package support RSA based certificates at all?

polhenarejos commented 1 year ago

Fixed in v1.2.3