Display the drop-down list

Test of openssl_pkey_export()

Example #1 : test not validated (platform dependant or random result etc.)
Example #2 : test not validated (platform dependant or random result etc.)
Example #1
$input = [
  
=> '$key',
  
=> '$out',
  
=> 'this is a passphrase',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'out' => '-----BEGIN ENCRYPTED PRIVATE KEY-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQI56CgpHdmzcwCAggA
MBQGCCqGSIb3DQMHBAite90JROuIqQSCBMj0QBC5PhtbePcjKEblQ1Rec1ZEE4wy
N07ZAIqT/K6F32WzydBOiHkgM0q48jO1CDisWa+pKei5HlHe18dxqua6GEwnaNl4
OC7wBZpqgw+FIifqhn0Ne6GSctzSIfzz8W0tZNtX45+rwXA8MgbwImZhq+QhHIB1
Nyv7eASbcFGN4Avpj2qgTmO95TDV3We0WBrvNl3VDpKhtLHZVlMOJWL+GtiKyrHC
gFln6QIp5HtRP5u+N2mvmiXKAoKlcB8+LwSCT7/1yJ2+hUXBAsEUx3SikXuA2yuu
QhxIisEDllVbixr3qG6Jikgf8If3UR/VZZVWZhC2MWKMII7bS4jCuyrgM6Kyre2s
C+Uc4ANuD2l0AHrAcTkFYLMB/Dh9XoTPjJVrB4Dd3LO1L+5IB5wKSCWB9l4RAFVd
j1HeF1Bj5jOHxIct/Il8hll5DJJcJC09EhFMJMYn+ZOwxncug6gsO76oJh4rrWIO
OEUQRetk9nYSkpVU2diXvd4Ktns6KdzMihHAzAC6PbwpDbvV2TwAhOX8OS+9cmu4
5AETzXau66A++Oacc+PIZA/eh67A1kfhgTLfpXKPsY+Tmdu+6dKpLA6sYRKbD1Su
XKL7S4mqn1RyDMLuitcYh/uAH/lU3Oj7NbOcWmcPhMv6J6MiLooRWOj7JyEKeyZC
1CKMBQCtYzy8tZRb7seWIeOSG6SEd5RXt3gOyZdl9DV4TDgTvpvdDR4KMZy9r1RJ
g8Kvu44xDykdBYAgqxO6Vngqfg4f+Nxl8XRm5tAAFypWR5Jo3xhGcbig1nt4yviQ
AJFENE7odY5sZat32pO0uNdJy86ngmBkDB/ftX7kvqimk7btHSp8a61AD8U3B/PS
Uwpbax9Flxhelo2iETCRhyJOw0a1wYK0Zayz/9UU/upNGPKF98aCsJ4RBvkaX+80
riLFtrtgY1TRTHEar9uDKu1S9ojda6ubAphK/VD2PtDdVlB3qinx/s/4tPJ6UkJv
l0ZWWb3AbwXT0B6t0zVGxSfDr/Y942Fom6eZrc9Sd6ndr9LFEx+LvN8H6D5LY9Px
45m+4NW7df9WHgwfo/G1nz5Z62iCbr5PTNFzcz/X1P2BwVCMJ37sJNw2TOqQXn0f
qUyzDeiHdDBIx7y/zysvjbq8CxCukVfDU5P5VsKo5h0dMDytdO6qgRoE4nsbSuvi
h/VB7ZFWxngO9vP2kntR8KmSXQlI/47mEQ8MwF43xizP2rmai54p4W0L8fRpdG+7
Jj12v9xVEH6XgIn7VTrZdFg/jyJSTrDa5m/KoNF54E16G1mQNMJ2FtLioFq+Nwir
0/igv+B2Bo/cTMFqgrkmSYGyQez2qYRv/cj1TAVGKKOCbZ3LLyoOQNrMYpxGVYr0
GX3viWZrIbnecDwJzTmXySBPOd30rZvGWQb2vrVRowgqDHr/Nuql7XQMsfIA3D8/
rAq3CABIYIyQn7rMOIOk/l1kAPjItlngKvp4I2Qrg3ZMYaspT2Rsyi+0ByZddkm/
CxGxYFNFI/pcof8XjdEJaw43p7MoYmM+S6VLyk9cgulOGw2IKdGk0cAgvxLP34p5
ld+JrNTSjrz836tHjbf28FqCQEpTWp7ZRsviA2Q35gkl6r4QmEkVjsIJ9z9zGfP2
ddo=
-----END ENCRYPTED PRIVATE KEY-----
'
,
    
'bool' => true,
  ],
  
'php_version' => '7.1.32 Linux x86_64',
]
Example #2
$input = [
  
'n_configargs' => [
    
'digest_alg' => 'sha512',
    
'private_key_bits' => 4096,
    
'private_key_type' => 'OPENSSL_KEYTYPE_RSA',
  ],
  
=> '$key',
  
=> '$out',
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'out' => '-----BEGIN PRIVATE KEY-----
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDM5zF4a+B9AYqf
GFtf5O78vfaC8j+z015UkydBdrkC8AM8kDxAJmBnF5pDonlULds2GXZlekKAwsIm
kzabEUmj3ktih5/CVlO1nK3tKvaSQasrWdcIEP7Crwga5iXJRKI928FAr/sPSsPD
yVilDEJJE2WoAw7ww8+m76YsytL4POvzulBzMoTYguti9VhUM/0KEkfFP3BxMdoo
7YNoWvRtzYsLUE9emwxwOKzmwQDMVgZMR+ewy9yl+MxV9WneP041bn4Dul68F+z4
J6UWZFLymFKI3I0kmomRMz1gVCEka4VZxwzpB3OyRCjr1QqK5zj6XWPMlcUhLh+g
Jx3tdhehKb75efhjnrx3MGSv7yyE73QtRROM0xSVBXyREpZoW8LJTDVZ+kJJq0M+
08pfWM+RD0SrbSXa0p+RmZidP0rwi3UBqij5tMjoO7942XCkLaoBT9ibX0qeW5/r
cQ5tbLcsemQG/F5bHEzsV6+E4ijLlROmlX7ZFKQGmnTnaTnDCVSlCIrZ8wmzcb8S
EadirkakQPpt/ouy5fNUS03rHXxpiqEOfJq0EzeE+iD2fsqUUa0DBsPMzKK9DPCZ
Ahp6xAjq/BABI+XCpDExUw5XmsKMh56gstFp04L0WZ7GdT4+1stZu0tC6wZdB23L
ApGvyTyVd9rEmsuC8hCNFtgQV/VY1wIDAQABAoICAQCzjzpL9AUiprIqnzabv0wr
EfEvaUintmeop9ezx210BI5hiWgzMy4xyX43HO9D9HdwXjnhzZTvrzxif4lPtIOa
5ZecPYujyvDKawYDmy2+l2t/rtgASpxmUOpCYELmsI2YtbYRkOXqzbLmJNDYufhw
f14LMLrsBDw5ZzNxd0APp5uB11jeynueHIRYEPaZu4FYTRK16NUJbQ1n5lPMpEAk
5QWfIX6cQjVRNmlWQfYIGq6kNDL2PIActf2iqlBfIYzQyAYIEE8qd7EC+gLyr3H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