publicKey property

EvpPkey get publicKey

Public key the CSR asks to have certified.

Returns a fresh EvpPkey on every call; the caller owns it and should call dispose() when done.

Implementation

EvpPkey get publicKey {
  final pkey = _context.bindings.X509_REQ_get_pubkey(handle);
  if (pkey == nullptr) {
    throw OpenSslException('X509_REQ_get_pubkey failed');
  }
  return EvpPkey(pkey, _context);
}