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-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIE+4lHmte2oACAggA
MBQGCCqGSIb3DQMHBAjkNoQ1FuH+eQSCBMgdK4spa101Pq5ygPmolaXGrNtPEHX9
HX0tacqcudoVI8u3QIylcJ0hU2iYPr58BqJ/E65Sul7S86B0Uid5XFqgI0TQBWw+
V9VYanr/jbzt/s1ckaEzUKddt0ekBX1if5mZ8rHVZ5SqQnmJPc8TCouB1JiHqA8X
n8vAEk+mWI2lr9+HnHnazap3Z5Ic8OfXT5MNiLzTtoAAlIE6iNvdgonhJWVxi/k9
n7Azk+xRT+iAl1hXSvmNponPNOUPg5QYfOdPN0R1qP4wwW3aH5/QFrKO8m75t+Rb
x20yJzqxJaW4iuByJrlI9Rx5y7K4/lEF34h4lINyJFRCkab80oqEpETCydLmO9He
LaFjhoGZ4zv/pauF/pGwYACWJT5UJsKmfo/ayV79+rvRqPI4ufm8sjYTg2aZgjht
txquwqImBgwDTE7xf+g/NADrAxNdehmybiw8NLZiczIUNvdp8ptOXvaPRwjl53Wv
o1EUEHmuoDucRH5Y5ime6r/MaQx+nklRaCxdzN6Ir0OOkL8ZUe7HR88258AUp7a9
SoGqsKXpMf42E/oTjOWf7J47NIjB8S0Dnka7C09z927EnYHdtp7p9LMdQ5UY9a0j
gl+/oAuSA82dDRRQ2JMPELIoyQvC9vmpBppiVH9SUo9EIkm26MUZWSYec+s43EJR
QtsEchAWBw0TBm/bEL0WFla4AR7IARcUO6jTB7ooi6UvK5IyI2kgMR6x2tt6N/GK
DJTjbOvfIKmHcFzKWcTOvMXB71UIIo+Dy9TtyNcnEqlg84DptqLktFTXLXtny2VI
gl2989njBR6ZsoLm2WunPXX4oWBoD1EjnblVJiPvCisxOON6B/W4D99NEmjMpqar
IZ1nLNDRYkhVs2VqakZobA0avFZwPBqTWZFZPFH6Mz5u1zfnKbrwMia/3k5IX1Is
JIYHROC66CfanoLGE7CHhnJ6GNx4rbRLL2pg3SscSefVv8Fv/NN0JRc5Blh1V9/F
nPDC5Qu17wdQRe5bOQKX6frAaAsz+yyQ6OyyAeLtjax5kIr/BxxbJc+Y8qk/Dqj/
09BAW0v+PJFb7O0BaRSaBb57OCQyJ+wbWz+UOaBXbIgbt248IaUzH4tK9jqbyNB3
LQjKp1czTHZCn6GJaAIy0R9RCDEBZeRAHye/GpFpZoznPw8WhgbzG19GUcU/ANPI
W6zg2YpuuJZwGhk/a6yk8b5kGMDLIGdw9r7/1ZFmCdjfBo15fsCe0EZyjN8e8l36
E0Bl7chkd/Ql2dRDvG+W/xOIHGOQm9NpwZNRKOJ6uo96yZskFRiFCzu135ZsU8oT
8PNzg6InSDf7lSa16H08bjwFinYaA1nRQ5bGRL4x+/z4xOaUy1busIHQaPL8GJIx
Tvc2ah/Cl5cY8L2FRPPfT2DUgizfGLaC4fMwtZBWT9tg9GCYvh+LxSXheeZ88KPB
mD+M7ZhCr3nFX2QzRedvZDwVQvPtSONc9XdOnC40XLixCKPPcn6Ye0lU3jbKrW0f
uUoioMotckr63dPSfJuKcoxs+K+9sDpsK3iZXWPDdHRHubgtG0jqaKEE3p523xey
ETeEvybASJk8pGG4AmSsMBpL8vPSE6YW67dJGQD38QbFN7d+urf41GimgZquP9lg
WcM=
-----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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