Actions
Feature #12354
closedPKey::EC Can't output public key pem when private key exists
Feature #12354:
PKey::EC Can't output public key pem when private key exists
Description
Steps to reproduce:
Create EC key:
Try and output in pem format
In order to output a public key pem, a new key object must be created with no private key:
Output pem
From viewing the source, http://rxr.whitequark.org/mri/source/ext/openssl/ossl_pkey_ec.c#466 it seems that if the key is private there is no way to output a public key for that key object
Actions