![]() ![]() ![]() I've tried to use openssl pkeyutl as well, but that results in asn1 encoding routines errors as well. Openssl dgst -sha256 -verify pubkey.pem -signature signature.sig hello.txtĤ655195756:error:0DFFF09B:asn1 encoding routines:CRYPTO_internal:too long:/BuildRoot/Library/Caches//Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/asn1_lib.c:143:Ĥ655195756:error:0DFFF066:asn1 encoding routines:CRYPTO_internal:bad object header:/BuildRoot/Library/Caches//Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:1113:Ĥ655195756:error:0DFFF03A:asn1 encoding routines:CRYPTO_internal:nested asn1 error:/BuildRoot/Library/Caches//Sources/libressl/libressl-22.260.1/libressl-2.6/crypto/asn1/tasn_dec.c:306:Type=ECDSA_SIGĪlternatively, we've base64 encoding the signature base64 -D signature.sig > signature.bin but get the same error responses. The general approach we've taken is: # create message file The digital signature (signature.sig): JJhwReHev8cxOsNKCR5t/Ee3WU9c7tkf9RuGNamXdpXQu9OL8ZKnsrblCO7vEmOXGKGrk6NsgA5JZpQhXO3A1Q= The message being signed is the plaintext string: HELLO MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEOorVp0M8xien/r1/1Ln7TkSpzzcXīL/MGRz66J1HSlEgBD5FwwpO1vo6jf/9azcrrrDdCi2NH9/cSDfv5D8gTA= Public key (pubkey.pem): -BEGIN PUBLIC KEY. We repeatedly get asn1 encoding routines errors during openssl verify, but I'm unable to see what's wrong with the signature or our process. They have verified their signing process in-house, but we've been unsuccessful in our attempts. I'm trying to verify a SHA256 ECDSA digital signature provided to us by an external party. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |