setPublicKey method
Sets the Public Key to be included in the request.
Implementation
void setPublicKey(EvpPkey key) {
_ensureUsable();
if (_context.bindings.X509_REQ_set_pubkey(_req, key.handle) != 1) {
throw OpenSslException('Failed to set public key on CSR');
}
}