#NEWLINE# def set_ca_certificates( self , cacerts ) : #NEWLINE# #INDENT# '\n        Replace or set the CA certificates within the PKCS12 object.\n\n        :param cacerts: The new CA certificates.\n        :type cacerts: :py:data:`None` or an iterable of :py:class:`X509`\n        :return: None\n        ' #NEWLINE# if ( cacerts is None ) : #NEWLINE# #INDENT# self . _cacerts = None #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cacerts = list ( cacerts ) #NEWLINE# for cert in cacerts : #NEWLINE# #INDENT# if ( not isinstance ( cert , X509 ) ) : #NEWLINE# #INDENT# raise TypeError ( 'iterable must only contain X509 instances' ) #NEWLINE# #UNINDENT# #UNINDENT# self . _cacerts = self