#NEWLINE# def set_pubkey( self , pkey ) : #NEWLINE# #INDENT# '\n        Set the public key of the certificate\n\n        :param pkey: The public key\n\n        :return: None\n        ' #NEWLINE# if ( not isinstance ( pkey , PKey ) ) : #NEWLINE# #INDENT# raise TypeError ( 'pkey must be a PKey instance' ) #NEWLINE# #UNINDENT# set_result = _lib . X509_set_pubkey ( self . _x509 , self . _pkey ) #NEWLINE# if ( not set_result ) : #NEWLINE# #INDENT# _raise_current_error ( )