src/OpenSSL/crypto.py
def set_pubkey(self, pkey):
        """
        Set the public key of the certificate.

        :param pkey: The public key.
        :type pkey: :py:class:`PKey`

        :return: :py:data:`None`
        """
        if not isinstance(pkey, PKey):
            raise TypeError("pkey must be a PKey instance")

        set_result = _lib.X509_set_pubkey(self._x509, pkey._pkey)
        _openssl_assert(set_result == 1)
def set_pubkey(self, pkey):
        if not isinstance(pkey, PKey):
            raise TypeError("pkey must be a PKey instance")

        set_result = _lib.X509_set_pubkey(self._x509, pkey._pkey)
        _openssl_assert(set_result == 1)
def set_pubkey ( self , pkey ) : if not isinstance ( pkey , PKey ) : raise TypeError ( "pkey must be a PKey instance" ) set_result = _lib . X509_set_pubkey ( self . _x509 , pkey . _pkey ) _openssl_assert ( set_result == 1 )
Set the public key of the certificate.

        :param pkey: The public key.
        :type pkey: :py:class:`PKey`

        :return: :py:data:`None`
Set the public key of the certificate .