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-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqlJlB+9PgK2peP87m3Rl
GzLgJEag+T3VaKz1VnS5DJzSzoXwnP4x5ywHMnmjkamUtXqLU9vajEjgUl7EVN5u
J+AQ0hW4aTTOr6B5eC1TVmvz75gqfEtl9NHo6VrSrObnpRKw23eQRvJ283k+SlZx
zz7OVujVhvlS6xY+uc5mN8HnMyvfjlyNC+fILB20CLWtfSgMs95Iu0pjFN+F0ct1
Eb5Irm00NE9kU0/j66y/DQIT29HA7BVXBDS/c2v85K5eBKaJr69bB1rMs/wTTAsj
N3CQ68TY14NBJE4VNQekL6UDuunydZzCAjFAO6hwd2caTDyntnAJVLwKHf7uiBPQ
RQIDAQAB
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'ReOx;te2$F=hVt ΅1,2yzSڌHR^Tn\'i4ίyx-SVk*|KeZҬwFvy>JVq>VՆR>f73+ߎ\\ ,}( HJc߅uHm44OdSO묿 W4sk^[Z̳L #7p׃A$N5/u1@;pwgL<p    T
E'
,
        
'e' => '' "\0" '',
        
'd' => '$' "\0" ' {Ud0VZ >Xі/F2CԠhUЬHo4uy6z(6QNi4bޔ p    :u=V/Hζ׫c.7n6+"$|t;չ[3C\\/C,zY`$4rcj7 ha(}ƽ{SfeŮt8xW|8wyAoܹ-/m[ouZ*3w    zOyO/oA',
        
'p' => 'B-mgsR3HxrVH:{Fc[ڄ}R[C(gTP#<O' "\0" '.<H:P2h9،iqU#",ݕ #b1l
3u5'
,
        
'q' => 'Q IO3XNWI44IC Π.xʡR(mm_o*
lkNf]h`Ň]s p5%/d#
*Xsy]'
,
        
'dmp1' => 'pﰴ&VWz
"3b9)3LN!iBO^ rDR>لT~9i"sH&1jk`71=\\toB)oYZ?*֣Dz^/U'
,
        
'dmq1' => 'U@?%Zx*籮M^=}PEHm+F#QREs+Q%|$aS=*cW[=:*ĵ}qukC#7-ot8\'',
        
'iqmp' => 'c؋RQ rbp~HjR
?KOI撚rJ`\\}%o1\\bDcT    k' 
"\0" '*]àTKbD]8B)oGK?|&V n.~l;g    ',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'aa526507ef4f80ada978ff3b9b74651b32e02446a0f93dd568acf55674b90c9cd2ce85f09cfe31e72c073279a391a994b57a8b53dbda8c48e0525ec454de6e27e010d215b86934ceafa079782d53566bf3ef982a7c4b65f4d1e8e95ad2ace6e7a512b0db779046f276f3793e4a5671cf3ece56e8d586f952eb163eb9ce6637c1e7332bdf8e5c8d0be7c82c1db408b5ad7d280cb3de48bb4a6314df85d1cb7511be48ae6d34344f64534fe3ebacbf0d0213dbd1c0ec15570434bf736bfce4ae5e04a689afaf5b075accb3fc134c0b23377090ebc4d8d78341244e153507a42fa503bae9f2759cc20231403ba87077671a4c3ca7b6700954bc0a1dfeee8813d045',
      
'e' => '010001',
      
'd' => 'a2240003f6c0b39a1f0c8dc57beee955643056b85a040be63e58f0d1961a97b42f46e5e1324316d4a0685597d0ac1948f51eacc66f347579e6fae3367a28a9ab12365118d64e69341da3621f92de9415fec9e70d02f8701e093a75f3bd3d562fcd48a6ceb6dac57f8ad7ab632e376eeec136832bf22224f5d7d07c743bd5b95b3343cc5cca2f43d0f3e92cfe0312efe2b47a5960e724af3472639a036ad4370b0f6861f312289a9e7dc6bd7b53fc041414836665c5ae7490131daba43878f5bbadd81ff1f8bbc6577caa81ab3877edc879b441886fdcb92de72f9f6de75be5b56f18755a1ca92a3386fcf3b07796097a9f4fb2d279aff7f414ce4fca2fcc6f41',
      
'p' => 'd9f0fb42bf847f2dffd16db06701aaa298b373b152a633f4134878725648b299d43aadedf07b814663df5bda847d52c6efc15b8aed43d0ef2867a65450233cbe4fc60019e5e38c152e3cf5483af850328e856813bfe317399afb8bd88c6971898ce555ba0e98b623222cdd959c0ce42362fc31909a6c80870af8f83301927535',
      
'q' => 'c81098510d0449a04f057feaad3358b3ed03c3114e93574980bf11c4c834f31434e6a44943cc0df8cea0f51b852eb77817caa1f6ac52281e6dfd6d5f16856fc008b32a05f39ffc1a0ef80a6cfe816b4e8c1c6602868d8c5d689482c3de60c5875d73a9100be8cd15867035b4252fecb0f26482230ac6ef2a5873797fda5da0d1',
      
'dmp1' => '70efb0b4991c26ef8656577a0716d4fea714af0a1fa322df033315bf62390fdc291f334c4ec72169818d9842b74f5e1adad91efff20da772974486ebc00f5285e83ed984921d8554e07e143916dde0692273bd4826b29e316abf996b60efaf37313d125c74fdebbc6f1442cb296f80b559b1085a3fbba42ad6a3c7b25ec92f55',
      
'dmq1' => '55bcf6e9d5403f255a782ae7b1ae4d975e3dbc7d504548a5116dd0f99a2b46f923eaac0151f2c3121bcb52ffa645ed0ea4738c91a02bdd519d257c97c19911d9246153e315133d0115e52ae2a6f763bb57c45bdb3d3ab02adfc4b57da771a5756b9143a4c2d5d3fe238d3716aad12d086ff8aee4c19b9ba7741c98b73827e3e1',
      
'iqmp' => '638513d88b5251f10bf99a729d9262707e978c85d248a66a520ae33f1314cf1f4beb4f498086e6929af0724a60a55c7d25e61bfdf407d76fc9315c8f62d81044d0631c0f540901f8a16bfe002ab5fdf5865dc708c3a0daf3541d4befe862445d3842296f47f0ba4bc13fb58a7c26eb0eff56ac0da8886e2e7e8ae56c3b8c6709',
    ],
  ],
  
'php_version' => '7.1.32 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-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAwcOJPsgfgDwbytNBW7l+
8HkHtVwZrMdz+9Sms77GplJcxxyrom83w1RGaGy4eAnfkO6h0edKLVvwBfxdQnZr
CEu8BwvQvS/EwGnYcbrynfACIpB42PbhYpW0Q6SXmWiYUVRHtn5sb16y5mCka+ha
uKHJdVj4SqYIyQEjZEJakohRBMrXc+cJW0WJjuCHA3dUTGxsFf27/vc6ErbamShv
niYUEDxDYITY5h9pdWule/BfsvlOlTGzAP2ovhzApQcpjQ6ZpvhCk+0OvrMiktwJ
56HFAO8bJdY/Ac8N7B3cJerI8Y3+gw/6OH/U4xbk/afgPixpX2W/Kne7thkZ6uoi
RLcod93pwiAt7cB7h5N7cB0rPK+uMEqvFMUkPU3BQPNiGsOQF7YT5kK46ykrxJkR
c+72T8iTvE6y0UVluC2t6lGB5CVhCmJgfVQSltdOTYe58OBkkoIYGy/R7fK+Q3dV
xzfz6iBD6Br8WL54YPDG0LFeIEeVwxXjTM/yYUXLconixoGfZ8OemDYhca+4eOCL
DpQNjS5ELHnhnGjljYHC22ow3un1qajpeifpz7sqycnX8gCRQtaN1iQtcbVZDqcu
4Dgou4k4agIflgAe2MUb5GwVsyWyVNXf60IFq39ceMrMmezqSoVazNJUhriG6NYd
9tu+I9gFU/9znsfD5Nn+0Q0CAwEAAQ==
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'É><A[~y\\sԦƦR\\o7TFhlx    ߐJ-[]BvkK н/iq"xbChQTG~lo^`kZuXJ#dBZQs    [EwTLll:ڙ(o&<C`iuk{_N1' "\0" ')B"    ' "\0" '%? %8>,i_e*w"D(w -{{p+<0J$=M@bÐB)+ęsOȓNEe-Q%a
b`}TNMd/CwU7 CXx`б^ GLaErƁgÞ6!qx .D,yh十j0z\'ϻ*' 
"\0" 'B֍$-qY.8(8j' "\0" 'l%TB\\x̙JZT۾#Ss ',
        
'e' => '' "\0" '',
        
'd' => '!/8ʘ6Ld+`Μcmިy ." [~Q\'    %9)$GHǘ.*t*NR">NF5CJ;LjSv?rݴ=t=k) t\'\'Ky.7xyЋz_Eœ}TRJ~^o!xq:' "\0" 'Go$`io&7@uVd*5i~ (np@CC{؉dӜƉa)X%_Ln-h-ܼyhRSDrC<E^Od|;^S[Qi6$by;/QD6G=e>"J(sT_K@(iujjUHO{A8A 5N;4}87o,-fQhF3׊۹6 =Us g*3jH_ $cÎ8H;-' "\0" 'n',
        
'p' => 'Ny"`ܠB)]:*B!^] B᭼25gЬk@ZZ!    w+Op    1G;_W@5BaxTV)ǟ=]"z @8a;tE>Ƹ[qxo' "\0" ']9T>(' "\0" ':if:cd_ 4巘#sh[< կi&6`}^;;BvϔLzMΥP˻!=',
        
'q' => '͎Z;l<QF[sC恳$mb*)v*[6#0ۻAR(SI
0+o諤|fm#duMمJ#bpMR Dd\'M(+0@gJ_撁۷-1Tc @1     n1Npdr q{wpG X"vvH] wmiђ)X`)0)yz#fe@sB'
,
        
'dmp1' => '^091NRzcsXDm|af$ژr63(!"^c!R4BQ6Mlq|yoѭ7fE:ͧTx4m$d+Nc 1$vFK14%t | Eʜc_~estxYQty} fFd-6";;㯵}g E2g 70ºz\'-8u{>Lž    k*%ٯHmiѕ4E͟<]',
        
'dmq1' => '\\"r.9ʆYZԓ>i*&% Fo.#Zv.sD݁R29' "\0" ')t+f=7c9ID@1ލE+DN@ KkfzTRj /(yު]' "\0" '&;҄\'go"Ѯ"šҴb d\'n&"#nةx I%Z#G΄Ṗ. S0(}!#=T@ A6{qa',
        
'iqmp' => 'YFVsKtA]$|{ w5-ڸK_C”aBFfotTb& paS\\UI.mjKNܶ(Юxk3%s<LlYdz:"E$,h\'`\\*8-^ZVor, V]5tfBva<VUZp[jeO>է媭˜5a9)v_#;潓"0P}2CXL',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'c1c3893ec81f803c1bcad3415bb97ef07907b55c19acc773fbd4a6b3bec6a6525cc71caba26f37c35446686cb87809df90eea1d1e74a2d5bf005fc5d42766b084bbc070bd0bd2fc4c069d871baf29df002229078d8f6e16295b443a497996898515447b67e6c6f5eb2e660a46be85ab8a1c97558f84aa608c9012364425a92885104cad773e7095b45898ee0870377544c6c6c15fdbbfef73a12b6da99286f9e2614103c436084d8e61f69756ba57bf05fb2f94e9531b300fda8be1cc0a507298d0e99a6f84293ed0ebeb32292dc09e7a1c500ef1b25d63f01cf0dec1ddc25eac8f18dfe830ffa387fd4e316e4fda7e03e2c695f65bf2a77bbb61919eaea2244b72877dde9c2202dedc07b87937b701d2b3cafae304aaf14c5243d4dc140f3621ac39017b613e642b8eb292bc4991173eef64fc893bc4eb2d14565b82dadea5181e425610a62607d541296d74e4d87b9f0e0649282181b2fd1edf2be437755c737f3ea2043e81afc58be7860f0c6d0b15e204795c315e34ccff26145cb7289e2c6819f67c39e98362171afb878e08b0e940d8d2e442c79e19c68e58d81c2db6a30dee9f5a9a8e97a27e9cfbb2ac9c9d7f2009142d68dd6242d71b5590ea72ee03828bb89386a021f96001ed8c51be46c15b325b254d5dfeb4205ab7f5c78cacc99ecea4a855accd25486b886e8d61df6dbbe23d80553ff739ec7c3e4d9fed10d',
      
'e' => '010001',
      
'd' => '212ff59cec380105ca98d5d036feb1904c9a96649cfd2bf860a4ce9cb0cb63876ddea8b9790be5982e221516b20dd55b167ed8f693cfefaef49081e613512709f7b6cfda25399229f7eee924a9a98e85a247fb48c7989988022e2afbd0ff749bca2a4e52229b3e04114e4635434a3be7adc64cb41d6ae3bf53763f7297aeddb43d743dade36b29fe190df38bdf74278727c3d64b79f72e377819e679d08bcd7a5ff945c29ca3b67d540503521a4af0cc7e07b08dd61dfa13ec5e6f998b2178f593f4713ad900c6476f2418988e60e3cd69b6cd6f26ce3740f97556641fc52a35698f7e0b9eb528dd6e7faf19a7c50e70e915404317b1437bd889db08c664add39cc689c2e861bbb7ccc90f2958258c18a25fffec4c6ec82d68a02df4dcbca179b6ca68bb52d253afe5c844ddc6dd720e433c455eb3a74ffbff647c9e3bfb14a80e5ebfff535b51a9f7de69c0e3f2b136ed24a462f6791b3bdf2fd251441fc51281ea02cbecf43691a147c281e8b0f7993d653ea22295e64a28f9e47317b51e9705dc545f4b9f4028bc8769def519b3fdf6756a6a5548e7854fa2119d99827b413841a4ce050c35f1b8124e963b903492d17dc43837aa6f2c07ea2d660fd97f516846ff8a80aaad33d78aa4dbb9a136ba0d3d1c55d0730db99f672a339d6a8ece48ac5fa49cb10b80249f63c38e38fe8b481e3ba02df50006b16ee187f89ee9c1',
      
'p' => 'eb4ebde10e1979f322d8c860f492dca01a42295deef5eca33ab42a42e11a215e5d7f0be412bc428ef0c9f2a8e1adbc16d43235810467eb8803d0aceb6b40cd5a5ac2210977102bd84f700931473be75f9d5740f53517efa11194b9e042afe56178545629c79fc53dc45d8b22117abe0bf340b410dc38da61f73b9905748ca5cb45d73e83eac6b8a35b0f71c578a76f058eef8ab2bbb2b000f0c2185d0339549a3e28f200893afc97d769c1de667f178b3afd63641b1e5ffb209b34faaacee5b79823c2d27368dc1f5bd1f53c0cd5af69952636608d7d04a618149b5e013b3bc70194d342761290e9cf944c7aa54dcea5b3c950cbbb0601bedefeda0721fcf83d',
      
'q' => 'd2cd8efce0a95aa33bd26c3cb0ad51ea9de2465ba673bd431c9cc2e681b3246db0e762faa7cc2af02976842a5bd53694f92330dbbb410e522853e7490a30b52bcfd5c46ff27fe8aba47f7c666d8623c564b7f8968da79ec675184dd8d0e298c7edffd985f7174a23c062c18e704d5210ca140d80446418a1274d9714d828af04b908d62b123040a310d1e4674a5fb7e69281dbb7b9c12d31a10f9154a3a9f66320bca6401df031da09120b6ebefda18f318f4eaa70a964a2721d9aa8aa0d717b777018b8f44719205822fa769976e3e79d485dbfbb83800d77d46d69af06d192f5c42958602930ba9b8929977f0579cc7a23668ca165c740731eb61f42abf911',
      
'dmp1' => '5e3039af314e9f52e47af3d26373b9de58446d7c8d1f6166812406da9872363328a7a721d722065e6321e30118bccb523404190898b3e442a08c51fb36064d6cc2717c79e66fd1ad17371866e245a73acda7547812958f34e0edb06d852415642b9f4e9210b6f263e40b319b24760646904b3108a2ae1b34259b74880b7c150d45da7fca9c1a8963d21a5f8714e1a87e0815f865ccde1cb773a7adcae5747859f951b874e0797d0c668c8daeb146642d3622a13b3be3afb5bcfa837d670bc445f61f3267bd0c9737f2301bc2babc7a27802d388cf375bc7ba39df406efe53eeb4cc5bebe96b69dcd096b2a25d9af486d6986c6d195fe348aab8645cd9f1c3c5d',
      
'dmq1' => 'b5055c227f722ea939f7ca869b595a9cd493b8c37f3ea869f72a0e9c0f089ce1ad2625f30520e8466ff49c2e1bca0e2303865ab0762eb97387b9f544dd8152329b390084f98329742bc0663d371417a7ac83e6eeb21a1cd8633949b0444031de8ddc45192b444ea040d70d4b99d86bfe8ae989667a54526a20ec1a2f06287992deaa5def82a0f9008eb30f263bd1d284278f67f46f89199c22a8d1ae131522c5a1191ed2b462cd0c64f99fe3ac12f52797f16e2622b4f3fc236e949efdd8a978d2e9e9f0f9a40c49a025f95adb12234783e2dece84e1b996d72e0dfed11453e79530ac287dfb21233de91d5440f99ccc209e41b3c5ed369b7bc005b8f671e361',
      
'iqmp' => '599f46a5890356fbf910d516734b138a74c2c7fab141c25db995ad247c7b0bb6b177a435fd2da4dab813cf4b5f43c2946142468f666f7454a39083ef621d1b2620706153839e825cfefb945549b72e01896de393cb168c1dd1ff8fca6a1598fae74b831bdd4e9adcb62894bca396887ffcd0ae786b332511b3733c4cfa6c59c7b3d5143a22b745ed91242ccd6899cfe927605c2a3898edffe42d5e5aeb8e569b6f8090b9e9d7ed0287ec9872972c0b8456ee895dc9ffaf35fd7466e0421b1876f4e561973c5655fdf5b95a70a198905b6a92e8654fb63e8fd5a7e5aaadc298ea35f66186eb39b9e7d929765f90233b19e6bd939d22c11ceb30507d32d343584c',
    ],
  ],
  
'php_version' => '7.1.32 Linux x86_64',
]