$pubKey = sshEncodePublicKey($rsaKey) //Public Keyįile_put_contents('/tmp/test. Openssl_pkey_export($privKey, $pem) //Private Key $privKey = openssl_pkey_get_private($rsaKey) 'private_key_type' => OPENSSL_KEYTYPE_RSA)) This is based on Converting an OpenSSL generated RSA public key to OpenSSH format (PHP).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |