'Replace or set the CA certificates within the PKCS12 object.
:param cacerts: The new CA certificates.
:type cacerts: :py:data:`None` or an iterable of :py:class:`X509`
:return: None'

def set_ca_certificates(self, cacerts):

    if (cacerts is None):
        self._cacerts = None
    else:
        cacerts = list(cacerts)
        for cert in cacerts:
            if (not isinstance(cert, X509)):
                raise TypeError('iterable    must    only    contain    X509    instances')
        self._cacerts = cacerts
