Req #26435 [Opn->Csd]: No possibility to export public key in PEM format

From: Date: Mon, 13 Nov 2017 10:27:20 +0000
Subject: Req #26435 [Opn->Csd]: No possibility to export public key in PEM format
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212567@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=26435&edit=1 ID: 26435 Updated by: kelunik@php.net Reported by: joco at irckecel dot hu -Summary: openssl improvements again +Summary: No possibility to export public key in PEM format -Status: Open +Status: Closed Type: Feature/Change Request Package: OpenSSL related Operating System: Linux PHP Version: 4.3.4 -Assigned To: +Assigned To: kelunik Block user comment: N Private report: N New Comment: There's $publicKey = openssl_pkey_get_details($res)["key"]; Previous Comments: ------------------------------------------------------------------------ [2003-11-27 07:32:56] joco at irckecel dot hu Description: ------------ there is a way to export private keys into strings, but there isn't a way to do the same with public keys. it seems like a workaround that i should create a certificate and sign it, and it's the only way openssl_pkey_get_public works. isn't there a standard way to export only public keys in PEM format? i know openssl_sign is experimental, but maybe this helps: it only outputs binary data, maybe there's again a standard way to make base64-like signatures. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=26435&edit=1

« previous php.bugs (#212567) next »