code: def set_certificate(self, **kwargs):
          
          if self._rest_version >= LooseVersion("1.12"):
              return self._request("PUT",
                  "cert/{0}".format(kwargs.pop('name', 'management')), kwargs)
          else:
              return self._request("PUT", "cert", kwargs)
docs: Modify an existing certificate, creating a new self signed one
          or importing a certificate signed by a certificate authority (CA).
  
          :param \*\*kwargs: See the REST API Guide on your array for the
                             documentation on the request:
                             **PUT cert**
          :type \*\*kwargs: optional
  
          :returns: A dictionary describing the configured array certificate.
          :rtype: ResponseDict
  
          .. note::
  
              Requires use of REST API 1.3 or later.
  
              In version 1.12, purecert was expanded to allow manipulation
              of multiple certificates, by name.  To preserve backwards compatibility,
              the default name, if none is specified, for this version is 'management'
              which acts on the certificate previously managed by this command.