note 125291 added to function.openssl-pkey-get-public

From: Date: Wed, 19 Aug 2020 17:55:33 +0000
Subject: note 125291 added to function.openssl-pkey-get-public
Groups: php.notes 
Request: Send a blank email to php-notes+get-214999@lists.php.net to get a copy of this message
You may need to export a public key from the private key, because the public key provided by the key generated by other tools is in pem format, and we need openssh format ``` <?php $public = openssl_pkey_get_details(openssl_pkey_get_private(OPENSSL_USER_PRIVATE_KYE))['key']; // save $public ``` ---- Server IP: 45.112.84.4 Probable Submitter: 103.51.166.36 (proxied: 45.144.137.121) ---- Manual Page -- http://php.net/manual/en/function.openssl-pkey-get-public.php Edit -- https://master.php.net/note/edit/125291 Del: integrated -- https://master.php.net/note/delete/125291/integrated Del: useless -- https://master.php.net/note/delete/125291/useless Del: bad code -- https://master.php.net/note/delete/125291/bad+code Del: spam -- https://master.php.net/note/delete/125291/spam Del: non-english -- https://master.php.net/note/delete/125291/non-english Del: in docs -- https://master.php.net/note/delete/125291/in+docs Del: other reasons-- https://master.php.net/note/delete/125291 Reject -- https://master.php.net/note/reject/125291 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214999) next »