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-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAwx/c8JL3SdE2zoY1meKR
3ze/YW+Bf5nMf9JSfdZIOplLcbxW9LftjJodCSYGeh8W4ZUwzykC3N099qYXMCul
yp1H6cH1feAxPQYObqFZ2k5YsJhvVgEn5eHi8z3MAucq9BSxrRaQSDwCxTJkNpgf
nni6NresrEES1OnEdpeT7t4njESu6iSZoUimvfiyYsZJH8kkPLfa4R0FZY8f0mID
YwyGk0oQtXgJvUYMK8ZS2ZJn+EqzqpCf17zbTaQiMGwfeSn90CSycpK9anL/2bUd
TF48d7gVc7PydPT0Z+tEejTkALgsmFq0xydyWJhVqyaqdC5oMxZTi6nw6G+6QzJp
cQIDAQAB
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'I6Ά57aoR}H:KqV팚    &z0)=0+ʝG}1=nYNXoV\'=*H<2d6x6Av\'D$HbI$<ebc Jx    F +RْgJ׼M"0ly)$rjrٵL^<wstgDz4' "\0" ',Z\'rXU&t.h3SoC2iq',
        
'e' => '' "\0" '',
        
'd' => 'w`+Ⱦ]=M@69a_ ~4 R2D:mn]' "\0" 'V]vf`q>w|' "\0" '0p$Pz8\\JޕX^XXJ i*,u Ł`L7f    ϯaϞ57hK߁BX#OpC&OGw"$N?\\br.\'ȾuLLN_2

dM e|!j+
.eUC5i=r9-'
,
        
'p' => 'ۘp"_Sj32*K#}!M1Ju9%&@HˢCt    /lGܟRᎠru䥚dQ[    ${V#~aӈ}BK/\\NM 8O^K1-',
        
'q' => ',~RuՀ8Ҡ#!nvzơL$ p2+gt<_ Nf ;C}T2,ϻ .P**7Ne7@8G
<c-2G;2dɎqy~{u'
,
        
'dmp1' => ': ؐW.))g85.#o9|jе-sa/o˭<h,HH":]ࠤ91f ~cnץ`F]ON>e6TI[-频h7R',
        
'dmq1' => 'Pv$PŶk!U:aʷ8t^?(`w髍wV0CgC5Kc;\\\' 88    zScoHp7G=V!b2 s    ',
        
'iqmp' => 'QB.*yմ3LP6"HnJm>;7=ij0u#^4r9WWrjՖ-ʰ>"OT}][\'AfEL㨾&7t|Ng`/?D',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'c31fdcf092f749d136ce863599e291df37bf616f817f99cc7fd2527dd6483a994b71bc56f4b7ed8c9a1d0926067a1f16e19530cf2902dcdd3df6a617302ba5ca9d47e9c1f57de0313d060e6ea159da4e58b0986f560127e5e1e2f33dcc02e72af414b1ad1690483c02c5326436981f9e78ba36b7acac4112d4e9c4769793eede278c44aeea2499a148a6bdf8b262c6491fc9243cb7dae11d05658f1fd26203630c86934a10b57809bd460c2bc652d99267f84ab3aa909fd7bcdb4da422306c1f7929fdd024b27292bd6a72ffd9b51d4c5e3c77b81573b3f274f4f467eb447a34e400b82c985ab4c72772589855ab26aa742e683316538ba9f0e86fba43326971',
      
'e' => '010001',
      
'd' => '7760e72bc8bec2cadd5d3d7f4dc6f0b840c33639a2610f17ae9c5f1bde1e12bbf70c7ece34aad30b52beb0fa32bc44891b3acbc1f2b56dab6e5d990056d85d76b9036660e4713ed8e11cf3777c001d3011d2f970248e507ab4d8c538e9b85cf64a9ede95a7585ed958588d9c024ad00d848f692ab6da2c75f90d8cc581b7604c37ec66ac1e9ed609d9cfaf610ed4f982a1cf9e35fe1e379a684bc7d9df81c34258cc23bc87b64fec0f704326fab04f0347d6772224014ed63f5c6290e98aca7290b791a62ef3fac127e0c8be75864ce14c4e5f320afefcf2810ada644d2085021c657c21e4a66ac4e92b9588a60a2e6555b543350769b0c33d72bd39952d0601',
      
'p' => 'f5db9870d6225f17538613fecc6a1e33e4322a4bfd8f237d214dd2c00531994ae7ec751fd5fc391625ce2640a648cba2cc431b74cc092f07d8169d6c47dc9f52e18ea072db75e4a59a64f3a9515b09beae249ab40e7b8356237e9e611bbf10d388077dc3c642d14bbc07122f5c97924e9d91b6a94d0c38dde44f5e08eb4b312d',
      
'q' => 'cb2c7e5211141375d58038e2d2a02321856eee7692f07adcc6a1f34c240c7032862b6774ef023ce4ae5fe00ca54e07119501660c3b437d5432152c8ecfbb0d950d052e9782af507f9c2a2ac23701984e653740eba638e7c3c347940a3c632d179832473bde1832e2e0966484c98e7186ebe51079fc9189ac7eaaac7b1575dbd5',
      
'dmp1' => 'ab3a0c1a11d8905783912e9dd729d4ed18f1a329976738352e9bafba92236ffa8e39cd7ca5a06af5b4d0b52d7361e188f92f8790b9856fdecbad3c682c48482205fb3a5da3e0a0a48139ebc53166f10b7ee6f9638b6e9412cad7a560465db44f4e3ec16536d05449a5a35b13e72d9cf4e9a2910faa1c680289be88e43752ffe5',
      
'dmq1' => '1b50b90ef982d476f424500196c5b6d36be8152155f204e2a7c5e03aed61cab7d03807a9bdf474115eac3f2814156077e9ab8d77b98402568e813043670443f8350eec4bac633b945c7f82ce27ad0c3805fd9eb9cfd838b8a6097a8ac1c1a7af5363f715c26f48701e37b9fdec473d562162e38b32fcb220c1cada7395d8099d',
      
'iqmp' => '514286bcf72e812ab479b1d5b405331b4c9de250943622486e4a6df73ef13b373db369b8f06abf0eb19030abbc75235e3472391cec5757726ad2d596a0f92de4cab03e9622f5a64fbaf5549e18e88cf27d1be9b15d5b2741ebae66454cf2e3a8becc261d37b6a0c37497d9e7a57cfe4e85ff98cf67608da42f3fedef441ee78f',
    ],
  ],
  
'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' => [
      
'b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κ.j$5zf0F
Їl~u_
b4G 9:RY]T='
,
        
'e' => '' "\0" '',
        
'd' => 'S_OBoGrHhO\\"Q̭^L=XY),ήzmi8ْl=&;h1ڏC.D)[E57VYN*3 ~\\Y̶f8N@2jg5:p
/6&G?^m\'A9z?$&r(f1SVϸCBҥ5pE!Z#,*}tԥq1B>,.4[`*vq+1#>X g
j' 
"\0" 'v\\= BI(pUO\'\\&y]Qq1R5^ʯ4*~h|sJ< ^Dc!EdhW#!W8,
X[ԡan>PHP)|ER21k[q83_pyY&>|Z8    >!y\\~L֦\'' 
"\0" 'XCs`8}
]t +a'
,
        
'p' => 'ۨR%Ah]4vhݸQjQvqpš߫ kB/<^XC[(o"@yw#!)*RhQ2[/@WkYwǩתU):UT?x)sdl(oi8*7[ʁWq+{L
[XsB&GZ[6' 
"\0" '=d d\'}#5GˤNۖIr&;
9.KS!t
t-e I'
,
        
'q' => 'n=Si/޲yB8p    < 54ل5$wM(;1&lg !Yl/ez;܌{SNxsƞ%nΠACChmhNUSKS6L;ELϨ`A~]A,XD
6uk/w.iވyv7Q<q &' 
"\0" 'N&9gہ)He`QM$k%    d()pB WU',
        
'dmp1' => '*VhgN <d$`վѼ%
mJT@h}\'~    8=>y Qn67+A¥NZ>    Ox[qx(TEϹ4#yw@qB
F c
đol`>AwHi\'XHIPF6t&]ݷ}1Cc*' 
"\0" 'F.%_V 4w.a«KI(`;bl昛Y}i;_h!',
        
'dmq1' => ';?#~&C~    %&[$md5-K{)ȺU\\;domWOf3>yAB{$Wp2k}~vt9&3}g; 2!3Jq]0WCܑW~|?xj/9#(a p5h
M    :=h_F ǫdr
RR+as-d' 
"\0" 'PP =D<`u1q4.',
        
'iqmp' => '`8Z-O/uyvv\'r}EoH??^=7 Lk<ƚJe+/:Ma}    D lqȢB1wNV9fީliSEL-7R/=X&"d5r' "\0" '97y.bc9Jڹ6H!yAG8y* 8=`n' "\0" '&b:#ĺ^2FR',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'dbfaa48be0b53e0031a38e637783964fbc5397f638572ce1957ba82cab1e43ddf3acedc17c9926fb5f49816c99b207f98f85889da4d2942635afd7f5f43507449a67079a617d834f257abf7010d61bb5944b429cae6a8defb6484d7d63509188723474f38146732eacd2f1dd7e7e6efd34d37fe05889c43dc963475daee9420a62312835ab2ad6fa7cf0bf026a51198e5a99de0a31fe780f9dfb8f48bcace1306a13f5a8e81a806d7eedbe5ed2645be17670cd2971882c078297b8727a8b2311fe9c5ebf6cae54bb5654f6887446e97ec369b12d2bad52e34238ea2d1179c64c527095437d73f99d869dce9e04ed13ab25d8f46005ee8e36ffa9fca473af15a44335850b5dbe5fdde3c855750c701373564a215666e5dccbfab3232f0b9b075d70b679a05e18cc8b3cfe0d3a67d0374d7d8dd3444b186f50ad5b33a099c26743fa78e252673834c7eac2dbff3d1089944b8261174b5d146ee375204a00615cbedd62cecc532bcedb7ed9472613672446df4350a7bf406abe3efd82c36563701bac7530b0f9f6009789a3549bfd0401c65517ef92e13d280c48c52ae1517cfeaee8df59260c6f92c1d02e2dde8c161e0d53090474d5c5d494fd27849e7ad473aea384cebaad2ed76a2435d5f0e97ad86630c6c0aa8bafd3460a1bd087e56c7ef9755f03ad0b0a621d3419121af27f99f006470bc2393a52ad59ec0eb15d54143d',
      
'e' => '010001',
      
'd' => '9d1c535f4fdb426ff304049347eda47248684fd55c01ef1d229d51ccad5e8d4c3d5859eae229a42cceae7a106d6938c6e5d9926c3d26e506b13b68fbd231f981e6e1050e1ee8fcda8f432eed4429175b4591c6fe8e97adcdf21b8bb4ad3502ec37dcfd5659134efa9c16810617ed072a330b877e5cddf059ccb6ea669fa11b38bd4eac904032f59dab946a67b8353a1270e50a2fafeb3626b947ccdb3f5e1deb6d27da418b9c39f37a3f24c32672e5288f661b31a9537f56d1cfb8bd92864342fbdd04d2a5359170c745215aede923a514be2cfbbd012a7d037410d4a5719ace31e714c4421a8dc2133e2c2eb207fd0f3495d25bae80e5f3a3ffed602afb76712b3123f23e11b59de2c05885f20c07ed670aa9ce6aa30085f680c5de76ecaed2185c048c1b3d0b17420e492870eba2e755ba1b5beb654fb5e8cf275ce826b479b0955dc9517131e652f2355ecaafe834f0b61ce92a7efec96801e67c73964afd3cb3900b5e0e446321f585e4456415b1ae68a457ec05c8d723e021e9ab57feb5ab382c0abc585ba8b2d4a161d5d16e3ea9fc14ac507f4850297c841345911b52e17f32b731a56b5b94b67138335f15ee147079908559b2e117263e04aa7c5a38aaaf09a13e17fa1be221fb870f1013e48c79ec19efcd5c7f14f8ed0f7e864cd6a6278fff0058e912f94311c473608d3818027d7fd40a89815df174c4e70c2b61',
      
'p' => 'f3d1fd9beaa8dddba85215ec254168d15da4e7d8dfe934bf13a17668b67f10b0ddb851c26aa10493a8bf51c7767170c29adfab0dbbd3e86bc9fe422f3c5ef858435b28d6c36f22c640edc8e479efc0b5b7f177e923ba21292a52bce1685132975bb3a72ff497d8f840bbf0c71c05f2ba576b1a590177c7a9d7aa5529173aad0f0e55543f9408fd781fa029c0e07316648d6ca728146f6938a285952ad1f6379ac7d810135bca81578171fce50f9593f4b02b7b804c120af05b58734226475a5bb6c636aee200fa9f3d640c6417277d0eaf23354711bbcba4b74edb96acfdd3fdb44972d8eadc263b0a392ecfc6104bc35321efdc021d8d81740a742d650b8149',
      
'q' => 'e6f7c46e973dd9d353691aa1cd2fdeb2a01796791142381c70cefb09e53c0c3534d984829ef4b988352477b6af4d1128eed33b973126b96c671e0badb72159a4a5b66ca9d22f1365f87a3bdc8c8a7bfa53f3e54e787314eac69eaf872519bcfab86ec2cea0414343c1c4686d1786ac89a307d1684ee3f655534b82e9d9539a364ca21c3b45ac4cbfeb03a191bc1bcfa86041ef8b7e8e9d5d0441832c58ae81cb44b70a0836e275e58a6bcdec2ff3e277bea6d4d32e69de880879e3768c149e3751023c71fba420f926004e26f9a1eae81b39679c01db8104a48cb9bd9929b2ce03c948f86560d551a44dcaea0e1491246b0625096401f2281f2970420b57ef55',
      
'dmp1' => '2a5668674e940c123c64249260d5bed1bc250a6d4a5440687d8c27f77ed90998eca738eb3d80c03eb3aaa514b1a8792011ac8d13516e3689a105999082372b808811a841c2a5e5afef4e5af7f184843e09b6d04f97789691835be2987178c804285445cfb9f53423c779db1177f84071c304420afa8a460d63f99bd80ac491906fb8b96c60d43ecf410e9ab1774804b7692758cf48dd1fb449e45046a336d1e8fa92b617e6747f89265d18c0ddb7e77d31aa1b43e7f1aa1c9a7ffd639b2a00b2b4462ef0a725ec5f02560120d034772eb992af89abb6a461f1c2abb6ba4b492860c9f03b626cdfe6989bdd590ed77d90693b175f68aea107bd92a321cecdf4a1',
      
'dmq1' => '08bba993bce83bca3fc72398a6977ec626437e0f09d605251e26d55b246dc6d064352d4b7b1329c8baa9ac551dffbdfc5c3b646f6d0e57c87f85a54f66333e9e791d92b2411e428f827bacb3c424a05770c132146b7d7e76fa1799ef7439aae997fba82603ed33cbe611b5191ae09eb97d8e981e678d3b0d32df120e218785b733e2954ab071b95d3057acce43dc91577e7c3fc078828ff4aa6a87b92f8939a323efffd31bb028610b80d4027035ba8468930a4d09de3ae9cdd83dff87806813135f1046070bc7ab640272f20a5252fd7fba05eee22b188fc26107cce173b02d15fb9064c4008b5050f4180e0d863d8eb0f544853c60ce7531e871342e159f19',
      
'iqmp' => 'bc60385abbc62d4f2f81137579a776a77605ab27c910dd148581ec9dc572b2ca7d9bb845a08e6fb448f69e3f3fd45e3da63795b5204cb690cc6b3ca5c69aa0a81be0e44a65da2bce2fad3a99ea4d61ffdddd7d1909bc440c6c1b9771cec106e4d51d940e14a1d0c8a24231af9380774e56398116f811a766dea96c6995d253451b04e2f2118c8582ee1fe24c14952d379589ca522f813d58afee2622e1a464143517d1cb72d000bf393779cef5f32e6284db156339e5994adab9d536c4d54821e679a617cacc41eb47d91938e679ee2a95087f940bea38d5e8cd3d85c8608ff9e66e968c001bdf269db362b03a118fd123059d83e7c4ba5e07cb324687be52cc',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]