Home > Back-end >  Odoo xmlrpc certification has expired
Odoo xmlrpc certification has expired

Time:10-07

I wrote this script around 4 months ago, everything was working fine. But when I returned to this code yesterday I got the following exception:

ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1108)

this happens when I run the following:

client = xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(odoo_server), allow_none=True)

what might be the problem?

CodePudding user response:

This solution might help you out in your situation.

import ssl
xmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(odoo_server), allow_none=True,verbose=False, use_datetime=True,context=ssl._create_unverified_context())

CodePudding user response:

whats the value in odoo_server, try without http or https. try with your ip or just the domain name

  • Related