显示下拉菜单

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-----
MIIFDjBABgkqhkiG9w0BBQ0wMzAbBgkqhkiG9w0BBQwwDgQIZC45KM1mFbMCAggA
MBQGCCqGSIb3DQMHBAj8oNz/UmDhLQSCBMj52EZGZiJ/G/hl6LYEFZiT7VagZvFO
UCFN7sWTgregdrdEbDSXhMlIrUtPl/I8hEmh5PMnJ2d+HPGEAsihY295gHfQgNGc
xK0SNz8efWZD2Ayr639BPyefr5pwD/DSMht4XjClZg/mqyw9mN/o6tnv0yy5lGcn
9R3bcd1Wnr/O96bAh3nil2RpofUkdrSuAJcwAQLowUHs8hVOM1/bLcLDNZACfxHv
GyuJTViZMFY5uxLOZk2c9Lpa7JYzl+XL7YNiO9+3anGWEjtjDz1SL/jxfLqLauro
MBEM6DfXTEJhtLr/Ejtuo319T57KeUYX8e8yQqKlTUTdvA/OSZmLr6qR0gGjljlr
Ku16lvduvQRrOVYS7chU13QCM333hsUuS+Fwbk2zJoTO30MSBBVy0V0O/tvUMCMX
QQJBoDiOpKLVqAcYvPyXc26UeZvj1v+BDbiwbZxQgQ1OwYjc4tqOw7W3usPVR3WF
2z55HgM87Yp9LFiQDvvI808/4084GIWAR4B5oSEtmzljJmAMK1z5acLZ30z5Cfo1
kra/RPXJmN4hYIqvNHl/ztYbSDoqlN0YI33/g2HwdjVZKpiu4tPJXoQK6NmPhv0X
gp6SHgfyq6PWkaKOE8gzHql7wOGSDCFtv8emiRScdWVStpKl2trYGJhKrKtnl0it
o3W70rvQcObokYEKMnLLyeEk4/vhQs4AD8RwyTsSI4tHyLSDXPTMLziEmaFvW1PE
5CmQ4gHWDAT8U685ICuldj6M4J1cWs51EML30At7/j1itMTir4IHOvrgXK4WvxnO
+l1YvGZZwF0QsUd925ZjSsSM5elmgMV8MY0tQVS3GRPZWVMh1ui15DnOFF9BLKBY
jXIrY6Yf1DmI+aAT10LHevHOHpOD5I0pvCt8ZCIRUo3xBfl/Wqo3HD61sOeWcLX5
DXjnMvn2EsSqr0hH0wBjPXCzA5fhdD7dOGNsOcPKRSy+N6WOTfsEmAUY/rpKYS4Q
dq5Q3KM9lfioRoS+f/eV0IAKYgfEPg/352Kblhki/ehWQXfCCXZor3kCCI8LhWi8
iXAGWMXYa5dR1QCd4VJ3qIzGOBqovgdnVWNhcP93ckrhPPq4m24NdfokS1J/qEo5
5Mg11UpRBcHBsk8R/m144n4J2DxMVPZsw5822WXUHX4AHY1W3Op3CgWmXl/Hup32
NwKSBPy33vejKx+cPScVdcIa7S6xugvy/kkbMt0+dNPib4NAD0E8hPJIH0WJADUD
c+tV5gqWM+Q2v3tLXXOjMuRwlt9XMuTAI0Egc1EGxBIAsgegGhJZkNbSo19AJk8L
lbWUZsxcFuJ8ydlUa9Jg8t1/kGVPF7VYuvchS63Vo6ysoKaKuO92lxBheH3zGgqP
pN5kT+6r8QUMS1VFw5pDev+xvn8Fm+J5Yei5BDepr58GHSYnDG5dEStkA1doWw3L
Vj+6S7Vu6Ay9Wpdp2vaYrghD75BRaVBLntypr9qe4SuDkreRlvMMyXFURDPeaStk
04s4H0LGpKfHAytgEgL8pniGR10O/nqGVIXz052U88qPUlG3PGOmSRB8Blr4BNIy
+8ACmgOxJhHX/8SrfTqxy7tmHlMwnB8JugULdvwdlabN4/QMqOZRagD5AkYHb9ox
vgU=
-----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.)
$test_output = [
  
'result' => [
    
'out' => '-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDr1FAvzubrnsRV
KC0qNi65xOTfVJF7Jgm5OS2GHD2WRXV8nNUWOjNYMopsVB/nnTcEXH7/bNVKrGP7
dSvFtjKhJU7F6jQr6OOgSprD4N4mMUCZzi6vg+QpRoxZKUkTtWqT7KydEwGc0uaD
vnUcObMiRyWrJ5Nu8VUiJae+HR+vhJyg02aXgXzM0doSr2DJVcRdHOFWbLSPrKPj
+tOcsrDBDHBjaU7ZicU7apMkrPyYVaoHy+kydvQhRlDniAJfOo9OVKxzrxEQBFc1
qkdUTQM6pzu1brkmt5Lp0mO6buy+oJ2pg0hJntG4wnLDBBtB/9ru0cG4H/qnuWJb
iC895qYSmta1piAM2WzNZc5OqB19dgRonbUSm+p41JiTDuFgzsdQepNar9sIfImD
qgDoZZWNYmUR2XgEWoe0TLPJq5vWLyRbSOgTyoHV/HjcFWWiCh4swsg81EfjSXeI
/bZtnnNOK9y6NiP81YeDusRXg517GW7E+AIhbADvrJh//nl1weTHvCRG2LKiovX8
CH8/Z07wvuSYgutnh+7PtgC45zs54MsJ3s1NpXl1MBUYq/US06z8515SEVmHlTaY
hQY4pAD2VkYIekZKlpfNZg6xdn4lofHfH4SZuqUVGTdFBDqY2beaMcg+0DgpwG+/
hZY4sxUpmjuu30Mwe8H17Xij1QBReQIDAQABAoICAH+43yzlW79kn2SXe86OxcOq
1WH3BUuzEDUWuIcXqGtIdxbkQavmHYS46qs87IKebPuZtNZVdTcaIpQ/o1NTGBya
fg1GiLb3TMC1ZxiLIwWAS0KBnltEjT+li8GGUKOx72TqG5p+frMWre3QKtD8lv4L
lmUZ7Al7/uWdizm1wEFpCwM3Oyr24EZ1qSvRfBPOtajQSWJrQWdG0wRYBl+pj30e
ZYgRsriymvVRBRwp7Cv8yTerwkKolhOnZ43d5Zr5tj9wMG3+9Li+ARV5gWQ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