Display the drop-down list

Test of openssl_pkey_new()

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 = [
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'resource' => 'OpenSSL key ressource',
    
'array' => [
      
'bits' => 2048,
      
'key' => '-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApBjYwovfJbj8nVM6E1BC
6PyAggeT8ccv/U/oLIKLq1tlZsPkAXkC0f0ZXUd2mMlYBAF+7MNUpEpjJhIiE1+p
rpeTOb8nw6599YV/tC/Aa8qJEebxoUczMdEcvAPR4hoelRDiK7dtyRNCJkH2i9oF
I+6H6ufWavfPeX67Ul6bY+TOVk4Qek2Br+sYR66Q8crTlUeFupYxkslV+yqGc+vt
pQCa1Zjzh8tBMG+tPwQa7Two8uTa8fapEFGFURjYDwbe4MM7vlL+PeGWN0hPZcix
a9pvEjFb98N1xs6FZIn70ZWhWimpZvJz46FFhzfiga4gQ/dJu5oe8Q66+N4hdVVG
OQIDAQAB
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => '‹%S:PB/O,[efy]GvX~TJc&"_9\'î}/kʉG31+mB&A#jy~R^cVNzMGӕG1U*s' "\0" '՘A0o?<(QQ;R=7HOeȱko1[u΅dѕZ)fsE7 CI!uUF9',
        
'e' => '' "\0" '',
        
'd' => 'z\\Լ>ᶭ? KN֢ZWՉ&*O\\LSy}KLϳ,=kOAM85jK\\X_(f++\'Oi ƈS O,g%L' "\0" 'frPn(|q 0AC' "\0" '_ʯ8xPƂ1Qm"11 # -Yh}5/\'Ȁ A^ׁSK| Kk"N麝I;Ml[Q*;rx1',
        
'p' => '螌Ƿ
mew>jG8X' 
"\0" '*{(gAYFe\'d 2(xj7Ǫ Ta4(:w{ŗ}J4}&nqh1&I{_VP]',
        
'q' => '­=Y f%^
:@˗=Uџ^D        fD>&vTBjPۚ>s>/o˖N& @RY\\DnXgoZIטFx Jc\'!Rߍ'
,
        
'dmp1' => '5=    /e#vFc dρ
NZ>' 
"\0" 'i-=GE*œ2.Db?p7U{Px>q,ʧ\\K/^bV]-H    %Y    Z^4+I',
        
'dmq1' => '5|],ԅ5xmZ]H|D|fq1@ }$Ւ
a-dGX7<lbOke9W1g>nvlmvDz#E؀dU; <d'
,
        
'iqmp' => 'Ȁ43GqBȽzE/JINkVvٔupqV\'Q RbehF
\\$?C Ug=' 
"\0" 'j[$HDz>^Eߝ̺ʺ^2XckZ,I9',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'a418d8c28bdf25b8fc9d533a135042e8fc80820793f1c72ffd4fe82c828bab5b6566c3e4017902d1fd195d477698c95804017eecc354a44a63261222135fa9ae979339bf27c3ae7df5857fb42fc06bca8911e6f1a1473331d11cbc03d1e21a1e9510e22bb76dc913422641f68bda0523ee87eae7d66af7cf797ebb525e9b63e4ce564e107a4d81afeb1847ae90f1cad3954785ba963192c955fb2a8673ebeda5009ad598f387cb41306fad3f041aed3c28f2e4daf1f6a91051855118d80f06dee0c33bbe52fe3de19637484f65c8b16bda6f12315bf7c375c6ce856489fbd195a15a29a966f273e3a1458737e281ae2043f749bb9a1ef10ebaf8de2175554639',
      
'e' => '010001',
      
'd' => '7ae35c98bcd4bcd43ee1b6ad1c3f940c14e44bfc4ecfd6a25aaa57add589b126fdd62ac6fa4f5c4c53a58614797d4bf34cf4adcfb32c14e8dc3d6b80f74f41ac4d38e51b01356adc4b5cd158e815cae35f28f7f1661d02fac0a62b2b1527a4f5d81e4fb1fb690d170e07c688530d4fa22c04bf67254cf00e00e76672f6049a9650876e287c8d710d8730ce4143a400f15f9bcaaf3878ffe8c650c9c9c68231516db41f892215081cb631e431bb8a0d04fb849588e2230dc2f52db6135968cfebbd7d35e1db2f27c880860bc8415e899c1ed781d8c153a54bb17c0b4bf86b9cc522a1d14eb9bee9ba9d08a2493b9e9892a7104dd06c5b8e512a3b19728078a331',
      
'p' => 'd7c9e89e8c92e8070fc7b70a6d1dab65f68b0177be3ef06a47387ff383580100a52adaf51fb47bdd28674159deed466527b86405d31d0dc5322808fcdef478dc6ac7fb37c7aaa3d1cec50dfd54a7a9aa176134162893ff3aae777ba6c5977d04da4a86cee6bddccf34e37d266ed971ed6889cf31ee1e2649817bb45fb656505d',
      
'q' => 'c2ad0398d63dc40e59942066b49c255e0abeb2083ac940cb97b9fdcdd53d92b555dd1fd19f145e88cc44e50909d8e1dd66f1c11a443e9326ad9676d85412426a50ebe4db9a3e97733e2ffa0e90986fd9cb96f14e2687ad0dd4c1b1401a52e4591d5c82d4446e5867e46f5ab449b1d7984678e70b4a63b4cfea27fb21e252df8d',
      
'dmp1' => '04353dc209bfbba2979e2f6596a72376838e46630d64b0cf81c00a4eb75af9fa073e84b28f01b800a20f11692d3db747b5b494cec0452ac593aad0320e2efa446218b03f703755a67bbfbffc16b0865078d03e71c82ccaa75c4b9c2fae5ebbe362565db69f2d48a709c2fde7c7f59991259eba59a0e9199a095a5e34179c2b49',
      
'dmq1' => 'a8357c5d2c08d4859dab1ad00390c3ccdd35e678abeac71ce36de6ba5a5d488d7cb282d2ca447c667131ba40b40c7d24a3d59207931e0a61aa2dcf649e47e4b11e58a53786b03c866c1e624f016b6581e7a2f5bf94153957311567853ef98eaadd6ed8f0766c6de0df05c476f112447a23b245d8809f64551e3b0b883c9964e5',
      
'iqmp' => 'c8803433da1bb6a44793719942b7bac8bde6f47add08ff452f4aab49db199ab14ed56bccdd5676a2d99475700f7185560414fc279f510db55262656846190a03e95c04243f432055673dd801a01ab6007f6a5b8a244844ee7a3ec65edbc145a3df9d8dea85e807ccbae0caba11b5b45e32eda6a57f5893e7b5636b5a2c49399f',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = [
  
=> [
    
'digest_alg' => 'sha512',
    
'private_key_bits' => 4096,
    
'private_key_type' => 'OPENSSL_KEYTYPE_RSA',
  ],
]
test not validated (platform dependant or random result etc.)
$test_output = [
  
'result' => [
    
'resource' => 'OpenSSL key ressource',
    
'array' => [
      
'bits' => 4096,
      
'key' => '-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA1rDPk5IV/64wrUHmRD1C
GZvB0kW2ptjFGMVNeoEApGHEpnX+HiuS2P5f8t7rEoVgJT7o/8U/dJ5npO4T4pAs
Cbj8jj+pYeuZ2rKmMaZIHr+W3iZogAA2Qg30uumLwYTs2pWp+VQ4YR02JYm9+W81
d6qmGObz4EihKEtm1P1+AaBHKObR96GN9ESOQz7vzJx+ZebCJ7oTbXsd62Ub7H1q
T5EYHb6w6tzulp5TPABVq/KEKwW9fD0SetuOcgp2lnnR7v7Oejvgy5LOS18lzCe+
ZxC33IoyTgnnzEaA2sIU2D1hYXHcN8t+FHO8TIdLlhQv6o4gsjKy83hcBKOQkSlV
mYHKIHiQd8FSLrvA/cizZC7X4AR+dzG1OO+lL/QvWLk3rfe4s9W4jQ1NW269gwa1
gFL9cIDJwnl4ze2TgefCwwcZOKZfg5dFW96cvDxbQD+dJ/I2E+02+vgEQvBgxiXf
O9R86c6hjZUmo51PkhfwTFNY+jaeWtOk25KH6qxUOraaxH9g5c2hXsW7slFqxDRy
YF8GH7KK/S/3pb14Z5wPpJogPR2cpITKFcDdwaGsf0/BR4O/EYQ9Ti7W/ggR2dp4
IY9XUewbBdSHs5N07ArqP9p9Fd5SHa3zbZ3Jr4PWeKcC6ogN1fH2/WktxMG4rMDT
6/bDMFRM7usDZkCDOrzwoAcCAwEAAQ==
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'ְϓ0AD=BEMz' "\0" 'aĦu+_`%>?tg,    ?aڲ1H&h' "\0" '6B ڕT8a6%o5wH(Kf~G(DC>̜~e\'m{e}jOS<' "\0" 'U+|=zێr
vyz;˒K_%\'g܊2N    F=aaq7~sLK/ 2x\\)U xwR.ȳd.~w18//X7ո M[nRpyx퓁8_E[ޜ<[@?\'66B`%;|Ρ&OLSX6ZӤےT:`͡^ŻQj4r`_/xg =OG=N.x!WQԇt
?}Rmɯx i-0TLf@:'
,
        
'e' => '' "\0" '',
        
'd' => '0Bf |a<' "\0" 'y,wJģsOP&(pYA:Q!F;9t%k j쎽4\\mHZ l;qJI?|L' "\0" '~Q%Xz@PZbfR縹)&eN6rzh7&o' "\0" 'hT05&i-FaP@\'U>^10VqSGT \'ٖ%ض=w*-F.ezH;1VCsT∼d/Ws\\VkouP+_=m    w K#KM#R⯥\'o*ǯ躣>Of]G1nȠMbZngeKNG9{DvVKD gr>pMn;@\'z.y EmG)~?l{& yatOL~^M::YKaAE~!01*1[Q',
        
'p' => '0py~EAJxdI9.H/`a``ֺ<z8OfъL7    !kA"rj &9HyH.
Ň%.,)ɏu.CrH.˯1BؖGNj}Ⱦ57I.MaΝHŹ"C=аc0|W]ET+[3їf1^A\\cYh5'
,
        
'q' => '}ŖZ
WnyRRLc˔$JjpN*{#cfHRӦ.Q:GzmG@/*yVςC[HCDhxEJŪ    v֛' 
"\0" '!He}0 G6V8|\\81=]PWdX$;kmQ%-rDfe.ίc읖{ERWsC;.dl]:K3\'XO1|5 KotϺl',
        
'dmp1' => 'k3s \\}NI6eO83P@;' "\0" '
~BnWKUb~s؝u
ZC/7m1uh\'McYkpjt6>؍*1jg0' 
"\0" 'lc[8\\扭+nr+i    3Rq+xiI8_
馲h7\'kOM' 
"\0" '!&F61XQ#g' "\0" '0~x16He< 8̢C.C',
        
'dmq1' => 'C:tmf*    yC?\\Qlj-"3rA*"FeEwT[3U&\'w x4+49hۖ2BoD\\#zOQy*IZ=쿢2˰!60a>WLբ;@z\\$
҄F$R77AK+͵W>$/xݔd8q-ĩ{jx;Q}; /WSt2' 
"\0" ' ?O,~yRBæQCݘIi' "\0" '-67u',
        
'iqmp' => 'bkN|2ƁtOwG2vډ0"(r?`ZSܣߺx9' "\0" ']0*C 4?]D|m`2g8DNWW
YP&EE T.kPÀ^64ܴOI/X|ohya-- N42v0k?|>#~^Y/خiXHxzޑ61p&UvIw-=2`V}o\\s' 
"\0" 'f2',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'd6b0cf939215ffae30ad41e6443d42199bc1d245b6a6d8c518c54d7a8100a461c4a675fe1e2b92d8fe5ff2deeb128560253ee8ffc53f749e67a4ee13e2902c09b8fc8e3fa961eb99dab2a631a6481ebf96de2668800036420df4bae98bc184ecda95a9f95438611d362589bdf96f3577aaa618e6f3e048a1284b66d4fd7e01a04728e6d1f7a18df4448e433eefcc9c7e65e6c227ba136d7b1deb651bec7d6a4f91181dbeb0eadcee969e533c0055abf2842b05bd7c3d127adb8e720a769679d1eefece7a3be0cb92ce4b5f25cc27be6710b7dc8a324e09e7cc4680dac214d83d616171dc37cb7e1473bc4c874b96142fea8e20b232b2f3785c04a3909129559981ca20789077c1522ebbc0fdc8b3642ed7e0047e7731b538efa52ff42f58b937adf7b8b3d5b88d0d4d5b6ebd8306b58052fd7080c9c27978cded9381e7c2c3071938a65f8397455bde9cbc3c5b403f9d27f23613ed36faf80442f060c625df3bd47ce9cea18d9526a39d4f9217f04c5358fa369e5ad3a4db9287eaac543ab69ac47f60e5cda15ec5bbb2516ac43472605f061fb28afd2ff7a5bd78679c0fa49a203d1d9ca484ca15c0ddc1a1ac7f4fc14783bf11843d4e2ed6fe0811d9da78218f5751ec1b05d487b39374ec0aea3fda7d15de521dadf36d9dc9af83d678a702ea880dd5f1f6fd692dc4c1b8acc0d3ebf6c330544ceeeb036640833abcf0a007',
      
'e' => '010001',
      
'd' => '30c71742660c8d7cdc1e613c9a0079062c774af8ffd8c4a3734f509d26b628a2f5f50415ea70e7fa59411f833a5188f021463bd5f0d0cc043974258b6b0c6a9502ec8ebd3414c55cbd6d9d88e648b883bb195a0ca0186c3b71c44abb493f7c9dfbc3c94c96b000908c7ed6decccf518c90bf102558ff7a40f350be5a6205c104d3661d9b52f1e7b8b9e2c0b089f7290f26c3d9150197ec65ee944ef29b369b72dc7a6837ad268f6fbdd4d70068eb0e1819a354b88a83adb130351afff99592b3f9e2f6b29aec261482be692dc346bc61da508bd0f240fccb2784553e5e9e31cb3056dd71b5538c9fc4f3e147540b132717d996e025d8b6ac7feba5e5f0b53d772a96bff5aa2d81eb46ef2e991b8e8a1765827a4887c4d13b3156f6aefd437354e288bc17642fc0935773875c56beb3c8d26b6fe8a875ad50e78ce82b075f3da96db709770d4b23eacb4bd34dac9623afe652e2afa5ccc3279f6fc22a88c7afe8baa3da3e92a9ad8a4f665d808af0924731056ec8a0f08a4d625a6efb67e08007dd65ab4b174e47397bf1c1144488cbdb18c076e2564b44940bbaa6e3671090081f72ff933eabd2704d6e9d3b40ac27b6a81ccb7a8e05142e86c6792045ea6d47297e3fbd6cc97bf5e426ba1d0c796107eeaf87f7744f4ceb7e89cc5e4db53ab53adf1559dbfd809a4be9a3d7d161a34145c41a997ecf21309431152af7315b51',
      
'p' => 'eceee5307079b27ef74505414a781786f0c7e5181964daed4998df168bd90539bda32ea0e998482f88ff6061bc0860e88cef1960ffedafd6ba3cb4fa7a3806cb4fc7d6f2ea669106d18a4cb97fd037b70913216be2f041e82217ae72a3aa986afffc9f120cd92639c8487996bb06c6d9d3fb482e0a1feb1dc58725182ef0cd1b1d2ca1a7c6efd129b2c98f75898bdf2e4372a648fcf0ce2ec5e4cbaf0e31a542d89647ae4ee9d1f86a9a7d07c8becb3504bf37be49cc2ef57f4da5ba61ce9dd8d41348c5b922aabcb2a18343c6c03dd0b098f4eb6330117cf7575d98b611b1b4da45542bd05b17a6043388d197a3a966d2315e97415cfc9c63f659c3e78e6835',
      
'q' => 'e7f7b17def9784c9c7c5965ab2b5c0920a576e0e79e784c752cc52f6cf4c63c3cb94244a6a704e2a7b08e5e39923c46366aa8c48529398ba18f482a6eed3a62e5187cb3a47857a6d9da70147a5b240ab2f04e32aa0bd7956cf821f43bd0193135b48434486889f68b2784594e2f64ab6c5aa0976f4d69b008821cb154865de7d300c477fb9fd893656388c7cf490045c38313dbd5dcff3a01681e005ec1e5057645824e03b6b6deacae1f21407511a252d14729144b1ef668b02652eceaf8a9eb763ec9d967b459652bcd0577343ce3b2e64856cfb5d3ac74b331a9727e7fff4dff1925882ee4f31157cbb93ad35d80c4b6f9974cfba8193ca1c0fe16c1fc6cb',
      
'dmp1' => '6b331b97730c5cea7d4e4936654f38b5e13350403b1d1ac0c9cfd5000a7e4293016e57a68e8a4bfed5e955de628917ef9ff47e7318d89dfa75810a115a43072fee04e908376df8a8311e75e06827f94d6359b8816bc870c96ac37436823ea97fa01ad88dfe2a31d56afcffa6673085c000dd6ca70805b107635be638aee45ca8abe689adb3a0c5ee2bea6e722bad9169093352712ba0786949385fbff0981dc1c4e519c1900ad2e9a6b207680237f11127f8ac6bf84fdddf4d9e0021f826d7dc46f802b11336d031585123670301eff60030f47f9bfd1fac7eec947887c831b3361eb01ab2c6c44865163c0d38a2dffe9993a4cca2d243a92ec1439413aca711',
      
'dmq1' => '433aa4746d662a94189409798be5e543ee3f5ca4516c6a2d22b0193372ed1ed4f6419f2afa224665457754b95bfee3c2335526872777a381fc0d9178342b9f343968f3db9632f742a1b86f44869f5ce2c023d87ad84f51c5792aab4904945a3df7ecbfa232a3921fd3e9cbb0d4feb0b4bc2105d13630a487c8ec92613eb457814cd5a23b407a5cb424d50ad28446e11ca124945237c83741a4844b9b2bcdb5573ebbd5242fd478ecdd941286ff7fdfe5fa64bcb7a18338712dc4a9f2a0f07b6a78983b5188f57d3b8e0b2f0ec95753840f740ebf81328a008ca8e901fa0ce13fe54fac2c7ef5f679b1528f42c3a6a1511ee3df43dd989e4969002d1216363775',
      
'iqmp' => 'a984edf0626be84e997c32b6c68174c64f77473276dbda89a930e0222885c2fe72a8ec3f1bd460905ae953f893dca37fdfbaf0788f39929c1302005df030e9d12a011e43db0c34913f5d447c9e6d8ebce7ae0313603267389f94448dbb4e57570acb59508426bbee8f1545f1450dac99fd54e1b0fb2ec06b50c3805ed336340fdcb44f9a85bd492ffffe5882cd087cbda5f96fba68e5f5167961feab027f1017a6e12d7f2d8e0dc0c94e343276be306b3f7ff47c3e23b9a37e5eb259f79e952fded8aea1d669584878ea147aba85de91f0f136958dce19b51a31b670265576ca1cbee0498b0f77bc2d3d3260b8c6567d986f5c7300f09ffd08b4ea66e4b332d0',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]