Lines Matching refs:key
2 openssl_pkey_export() with EC key
12 $key = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key');
13 var_dump($key);
17 var_dump(openssl_pkey_export($key, $output, NULL, $config_arg));
20 // Load the private key from the exported pem string
24 // Export key with passphrase
25 openssl_pkey_export($key, $output, 'passphrase', $config_arg);
30 // Read public key
31 $pKey = openssl_pkey_get_public('file://' . __DIR__ . '/public_ec.key');
33 // The details are the same for a public or private key, expect the private key parameter 'd
39 var_dump(openssl_pkey_export_to_file($key, $tempname, NULL, $config_arg));
42 var_dump($key instanceof OpenSSLAsymmetricKey);