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-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIdVQVAAzDhUoCAggA
MBQGCCqGSIb3DQMHBAj/xyd56yRCrwSCBMg2zB0pXUcPIAWd74Ux0mkc/8el90Vr
XtLdQmavyMAG6G/SCgohzL3eniZWAZMZrBz7Ij2krkp116bjPih5AMP49y/YEDXY
//oxZ+ZlfOaKeeyDYrZ14yiM9xpjgY6iaX+CrOdERT0JM/K6HVZK2bVol2ss+e45
eHFIhQjK4cjuO/Gl7eiAwf/8uLhkMD6kI2bTKAPs3cEv2dAx6c6PK2t+8ZjddrHV
Yeqw2kWBH6M3pBupku8Zi37HCuZsk60rKh9fcFh1WjMrrgirrieNJe/TIlipYjLs
7321cXAHgQZZGEgSoGA/jZW5qO/hmLe66dz/3tMNEKGozBl5aASs5LjIIhaNg0wV
2AW4tdLIfgoZEu/0e1vL83UxssF9Da30Pqt8DDJ1RhPOBmLy9oDUzYkFyMngRUzY
kt5vVhMC8SfygSV0s362BexsPN/vXwJJeHDpD53kYKEla8Hvk6Itv6qG1ZGnDl2w
m1aR4EKOp0C9Dl3L2stk0xieBHNJKs+iJKk0OTVsU7twMXFvEH59c/DT7KVZFrkT
PWjymCZbDz+klRtN7Pnj1MHcAJXjYTZ7/vnLnYgvlvbq7Ji90YxFbp+E4PMxPM4/
8Y8BTwRmZ13ADgvBf8lhAjBxwxolOl5q6Ltewqlw6GeHgofr+LwVW+/v3DacGRML
xTWGAQsG62YOK7E/XQ7LXKOfaE4Iyvou+fhOB4JOdG3MlTpmxBjZg6nwH9VlayNc
XTqIXUXQm6KndHtXVzhZ5EIzkloz0d7MgrLFZua7WNWVUcWT9EE6lNR59xeXhYrU
xWad1TilSXb3Oxgy31zkH4lGGCceysZDI9bgfxTq7pDvAohiOsacacUTcep+ZrYY
zvQuoO0ncRnqVOZtPsRfuvUigRFgAFjlryFE/RYz2WUPzxsr9PVteoCvfoq7xNe3
BRWnc6KrXykxtxcyyT4TLqO4OULEtvJWoIwGvLcWScM8O0nx79vwJIiLFJb5ZS64
MPlQ62tHDuuYPEA7lwCWX7MluST9jMPbIKOHGriPkW0IQl/w2se7OseNERyvRScO
cJHqB6bnzFk3tOujsandhfnQaIUo4qIIRoz67VoUgfeg/vw1A7YlBaPKxo/wXVFO
x58lOlKAnFoRKMeOQbhvFyWj+nRupyy0YA02IvOym13Ym6SwPlKU//bhNLDoE/wn
orIucD4ny5Gg+xa5UK3VHrTtt37L0JWxVsNZpo3hFfcYiclM2xa5ilJ7fQOuBR4R
vfW9C/Qe3afbfb4Lf1/z76yixnUuVLPVUHkVbMkrNi5Tx/PyQsKGZLiSKY3kkKrX
/8ia58+QjexbRMjmY2eTAVcHUpp8gduqcGfP8X/t4O/iAHn4aVtbQm+kwiFRsq10
26oYvE1+6yQkrk42+v/cUZOwKGCTEWnSA7D98SS7+kjbkbsf+v7vbxUmJlvTJfdd
RwVzcUOWkreyuGaUhR4uylGNO4mwnfuVc/sY0udNqnLcEeKVsoZHWFulvnJaaAcS
C3y1z/M8RIxo/HkG4xavnoMj6MUxj/RYWFPxAGNOENstEqllpuOmJ145liUbrDNF
vFBScQmG98tfZlpBvIvI0K8uIKHG4dm1CrnkOZGfpgRQ7g6nGreHSnGA8ifXRDEv
wEM=
-----END ENCRYPTED PRIVATE KEY-----
'
,
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 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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