[Podofo-users] Podofosign: Error to decode private key

2021-02-11 Thread Abhishek Nag
Hi developers,

I am a Linux user and trying to use PoDoFosign to digitally sign some
documents.
I extracted the public and private key from a .p12 certificate, and when I
try to sign I get the following error:

Failed to decode private key file 'privateKey.pem'
139816130314304:error:06065064:digital envelope
routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583:
139816130314304:error:23077074:PKCS12 routines:PKCS12_pbe_crypt:pkcs12
cipherfinal error:../crypto/pkcs12/p12_decr.c:62:
139816130314304:error:2306A075:PKCS12
routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt
error:../crypto/pkcs12/p12_decr.c:93:
139816130314304:error:0907B00D:PEM routines:PEM_read_bio_PrivateKey:ASN1
lib:../crypto/pem/pem_pkey.c:88:

Any ideas what could be wrong? Is there something wrong when extracting the
privateKey?

Warm regards

ABHISHEK NAG

PhD student

Technische Universität Dresden
Institut für Kern- und Teilchenphysik
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users


Re: [Podofo-users] Podofosign: Error to decode private key

2021-02-19 Thread Abhishek Nag
Hi,

Different format of what??

Abhishek

On Fri, 19 Feb 2021, 15:00 zyx,  wrote:

> On Thu, 2021-02-11 at 18:31 +0100, Abhishek Nag wrote:
> > Failed to decode private key file 'privateKey.pem'
> > 139816130314304:error:06065064:digital envelope
> > routines:EVP_DecryptFinal_ex:bad decrypt:../crypto/evp/evp_enc.c:583:
> > 139816130314304:error:23077074:PKCS12
> > routines:PKCS12_pbe_crypt:pkcs12 cipherfinal
> > error:../crypto/pkcs12/p12_decr.c:62:
> > 139816130314304:error:2306A075:PKCS12
> > routines:PKCS12_item_decrypt_d2i:pkcs12 pbe crypt
> > error:../crypto/pkcs12/p12_decr.c:93:
> > 139816130314304:error:0907B00D:PEM
> > routines:PEM_read_bio_PrivateKey:ASN1
> > lib:../crypto/pem/pem_pkey.c:88:
> >
> > Any ideas what could be wrong? Is there something wrong when
> > extracting the privateKey?
>
> Hi,
> yes, the openssl has trouble to decode the file content. You might use
> a different format or something. I do not have my test keys anymore,
> otherwise I'd tell you which it is.
> Bye,
> zyx
>
>
>
> ___
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
___
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users