Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5109 Visualizzazioni

I have a certificate (p12) supplied by an authority, with a passphrase. The idea is to let the user himself to upload the certificate inside odoo (in his own profile), to sign things inside Odoo, using cryptography libraries.. anyway the first step to give the user an easy method to upload his file.

I've wrote a custom module inheriting res.user, in order to store a digital signature, owned by each user.

I can't decode the file. When making this:

    kfile = base64.b64decode(r.key_file)

I get "incorrect padding".

Already tried different approaches, found in stackoverflow, like adding '===', or adding '_-' without success.


Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
giu 23
2895
0
feb 21
2500
1
mar 15
4229
1
lug 21
7877
1
lug 20
15988