def get_pubkey(self):
pkey = PKey.__new__(PKey)<EOL>pkey._pkey = _lib.X509_REQ_get_pubkey(self._req)<EOL>_openssl_assert(pkey._pkey != _ffi.NULL)<EOL>pkey._pkey = _ffi.gc(pkey._pkey, _lib.EVP_PKEY_free)<EOL>pkey._only_public = True<EOL>return pkey<EOL>
Get the public key of the certificate signing request.

:return: The public key.
:rtype: :py:class:`PKey`