تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5155 أدوات العرض

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.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يونيو 23
2919
0
فبراير 21
2571
1
مارس 15
4268
1
يوليو 21
7943
1
يوليو 20
16054