PHPverse 2025

Voting

: min(zero, zero)?
(Example: nine)

The Note You're Voting On

Anonymous
18 years ago
you can get (and save to file) public key using openssl_pkey_get_details(resource $key ) function:

<?php
$pub_key
= openssl_pkey_get_public(file_get_contents('./cert.crt'));
$keyData = openssl_pkey_get_details($pub_key);
file_put_contents('./key.pub', $keyData['key']);
?>

<< Back to user notes page

To Top