code: def update_certificate(self, certificate_id, **kwargs):
          
          api = self._get_api(iam.DeveloperApi)
          cert = Certificate._create_request_map(kwargs)
          body = iam.TrustedCertificateReq(**cert)
          certificate = Certificate(api.update_certificate(certificate_id, body))
          return self.get_certificate(certificate.id)
docs: Update a certificate.
  
          :param str certificate_id: The certificate id (Required)
          :param str certificate_data: X509.v3 trusted certificate in PEM format.
          :param str signature: This parameter has been DEPRECATED in the API and does not need to
              be provided.
          :param str type: type of the certificate. Values: lwm2m or bootstrap.
          :param str status: Status of the certificate.
              Allowed values: "ACTIVE" | "INACTIVE".
          :param str description: Human readable description of this certificate,
              not longer than 500 characters.
          :returns: Certificate object
          :rtype: Certificate