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-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA42adZDGdHmN5WFlX9c5o
wyVvzleR6UEhWfGPO3I/8dnCpVjhlSK994m9ExsJQDUhziGAxxHbY9oe1PGDwY/L
WQdx7eaCNNCmash5PzJSvNsnMYLX8UQurZ+MWIW36MtGo3JpUU6RSAvaJ4m4ko9U
wUGvsoXS5aYw8PIsTMMoQABWyn8Wz1TLypIcj0N1inxMcMvHIP3o6u3l8O4loWXe
GUqNErxTKCZUszlzRdWgrX9jJQX3rmyDqYZS4hAY4Afng6AHIIgzDSeasTqHhlcb
VunRwAyMYPWSFT7zyLWY62z7H48K00EXrbZA95w7AmrQA114rmsiiQ8Ji5R/C9rC
OwIDAQAB
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'fd1cyXYWh%oWA!Y;r?¥X"    @5!!cYq4Цjy?2R\'1D.XFriQNH \'TA0,L(@' "\0" 'VTʒCu|Lp %eJS(&T9sEՠc%lR烠 3 \':WV `>ȵl
A@;j]xk"     ;'
,
        
'e' => '' "\0" '',
        
'd' => '|ȸ$C9*h_޺U*xi~@"JZ
$ARC(' 
"\0" 'sD,t~H    O76}6@-YsugNZM2wͧinD9TAJ+Pwjy+*(6FLa`#3:
?Ef]&
chGBv)PWKђxͣ3X>]+"hy.pt2g
BHi'
,
        
'p' => 'W3W_tfpi3k>H78-,(nHCeе DJKzL &f&#w+WKC]h#-D%>_I<o`oڭz$ êK%N?o',
        
'q' => 'riRe:[ꮡ<#A㶴
i?r(ڌ[g!=P]
#DN_e4gxuM
f+<dx; k+Z◷w_LJsW'
,
        
'dmp1' => 'Ӧ    j&4r[@-ct/c=g_ar#oGl,V;ߛIWY_kב3Oҫ6Х~5>fܮ6u肑 byQkb1I7] S',
        
'dmq1' => 'E̔-|(9P0`6' "\0" '{Xw
bJR3}1尶]2qw&= 9NFQR: dt\'Ĺu%b:P!    Ta'
,
        
'iqmp' => ';$ic' "\0" 'ۏMpMn%LafJ-9>qͨHj\'ײxvY:n %Э3ť:;4X5iko>\\^1ȤJ',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'e3669d64319d1e6379585957f5ce68c3256fce5791e9412159f18f3b723ff1d9c2a558e19522bdf789bd131b09403521ce2180c711db63da1ed4f183c18fcb590771ede68234d0a66ac8793f3252bcdb273182d7f1442ead9f8c5885b7e8cb46a37269514e91480bda2789b8928f54c141afb285d2e5a630f0f22c4cc328400056ca7f16cf54cbca921c8f43758a7c4c70cbc720fde8eaede5f0ee25a165de194a8d12bc53282654b3397345d5a0ad7f632505f7ae6c83a98652e21018e007e783a0072088330d279ab13a8786571b56e9d1c00c8c60f592153ef3c8b598eb6cfb1f8f0ad34117adb640f79c3b026ad0035d78ae6b22890f098b947f0bdac23b',
      
'e' => '010001',
      
'd' => '9099cdf7ca7cc8b8248f83b0a543ede639c611062a6892dbec5fe8deba55e32abfd578e1697e40224a5a0aee2441ca07871652d74389a8c328dbec000673b3b11744e12cb51b749a7e48a0a1091507b6ac0395da4f37361f7dd736eb40f92d59ebd1731b1ac4d37585f1a267d5fa82c0a94e5a4d32c0899f9177cda7ba69bbd7c7f56e44a5b439a796549d414a8b2bfc50f61b778ec56af879b42b9c2a9528f4b7d9e8e03646fce3194cc2619f60e123333a0a983f8616e64566895d260ae8cdde63c091680747b9a742cc76c129bde6e250101557934bd192ab7810f5c4cdcda33358ead01ab1c43eddce5d2b22ee6879b42e707415320567d00a42ff486991',
      
'p' => 'fff287579bab330ea91357cb12955f746670f56996dd336b3e4837b8389e2df6d42c286e48cbf543d6c165d0b50ce99f444ad74bb4a9c1907a83cc4cdf0b2666bfcd262384d8c6772b574bda1b435d68a323cc2d0244b9d625083e89df5f8b49013c6f606fa5daad99f47af824c30cc3aa4b25f1dc1ffdd1074eae3f6ff101bd',
      
'q' => 'e37295691a52dff4c81265913ad119815ba8eaeaaea11d3cde01f2e892d9d323418bad8386a2e3b6b4e2860a69f83f7228f7da8c82c85ba1b967213d505d0a23c7441fb34e835faf659b191d8dabc5ca341c1ae26778fb9be7f9cd754d0aba960e66042b3c96f064783bbefa7f0b8c6b2b5a189ee297b7c9775fdd4c4a730757',
      
'dmp1' => 'fdd3a6096a2634725b9705402d63d9d0742f9e12633d67daf95f6172df236fee13a8df47d006056c8bb42ca6f8869fc205563b81a6df9b490f5759eafa5ff26b7fd791f533b04fd2ab36ddd0a5acff1be07e85e43515b73efa66dcae9aca04361875b8f6e88291060d6279f9516be662bda5dd31a8de49375d89d820ad8153f9',
      
'dmq1' => '45cc942d7cf691e3fcc22889391392503060d636cf0082887b58fdc281ce770d0ac062af4a5212afaf33150f7d15c1e2b6cfd931e5b0b6ee1a879b9bc55dc80ed2c805327195bf778426e4be3d0bc9d713c6cc394ea7c20f465152cbfca89e3a0e91201664b1ad7427b1ae1a1182e9c4b9b91c7525f489623a502109988f5461',
      
'iqmp' => 'b7c012f4c607883bebb90e1ac6f6248b69a7e613f59f1063009cdb8f934d1a704dcac0856e25f24c61d519c866ca1d4aa310f62db6390ef13e71cda8a748f1e394d46a0f27d9d7b21a78abece7c67ff176f5593a6e0d9b25ca12bed0ad33c5a51f3a3bdc34bbc65835eed6196991d86bc1d4f46fdf3e5c9e5e3180b7c8a4c14a',
    ],
  ],
  
'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 PU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'',
        
'e' => '' "\0" '',
        
'd' => '@xXp*k{N] ddiN~l
G8Cclx3    ܅!Bප7
$ ξ`?4L}] C`M鑼-%Q~񺻉l7X3IXBavG_2o    >j &&|\\4{;8 %ױs}ZiCJB\\(,6<SMmȕ U*@ L)Q̤C.Sfң\'Y6Vc{1SvpP~QAQ    J$
@[Nh <z p3QThVjyx;|~' 
"\0" '!tJbH0=IjX-Tɤho)Vp5o&)obMT@U3&1+3{*"c\\vq1fd#0`4< 2k$dXZ|j6zeh' "\0" 'jG>N8"bTC',
        
'p' => 'Ҿ?ְ0&!~%:RM1ぜ&ehZA ]T ^)5iG)\\ 4(3L*    qYў\\fTɵ[]7Bƹb9WMN:?aA"EP8+x/,:G$e.JʚWFoXxLDC@,[E6dOeօ]ĬMċ> uTf|l]ҩij',
        
'q' => 'v    A HL' "\0" 'D' "\0" 'j{CmK|J}]zQB80C\'=quc<fVE\'̐NULjÃ@;-b W"U0&7hѝz\'lこFJX!(c*5AMA­~lGץlD%k"{H@#Tpk\\^2-u
Q^<^t6'
,
        
'dmp1' => ' Imgos/b܇,r.qtbVX􄿨Jb!&Ζ3+1fn    UΦT?ӦKFP- $0;Sq-< qՑe9הOa%ʹ\'Q+P1YXU\\ SP%]39RqDf|#h|!Nb>߳aB@x5X92N\\(,7M&=',
        
'dmq1' => '' "\0" '~yKTÖ2r66u#_9LkhIݺ :\'yFr`Pg2@C)r[v?r<Քie!آ+ԓj9x@)&_Gߖ8p1F]S?OY,ۢuUH<$.' "\0" 'C(8K+rػVBR&y ļJKs jx%U9
~ê%[2ia_
8;ў5=}>'
,
        
'iqmp' => '0|5US>L%$=j)S=vyCÿ
=sz^ʶn\\qv"  m&ީ ʎq?S-#+    S(az    g/QxkLIJu[-NwpVM)*tr]\\h`3W K%#m_s_R C)    <bp1w Cܵ)b&)$Is+o:00)zOxluԘU<G\\Hk' 
"\0" 'u',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'ad41c593b7cc3fce7ddb7e49de652a9ee67593fc13b20bdfb5ec9b9573c5fbd512a93e81c9b0e696c5a29713af228c9f15c9a163f1da98f759f470beed22aaf1b9082743a5e5609383ee1c61ecad904eed989de4b19a7a701e902fb0a10ec20986d85156ae2c76efc6189b57fdbe5b29a0c17ca41e65a2d11f66bffcd4f5e37f907f34df2dbc5b1276c9fcad6085924686154ccfcb229def65da339e7fd9836a315e3bde008d7ee853328b8f051e60fcddf30adaf82967684d89a8c5a649b94db903536f19072300f6be0e343ace5efe8880dcbf2e607815544858b7f10f212360b888a2ea2b1df1f021057c2beb52d8ca83ab638bc49254b53f9fd9549cb44f25205ed1c25a8d47b4d455c12d9b22eba50583a26aee5de4e7f4226ca061b50d67de3b6cbcd355bbe4f413e4ed8e3b310da65cac8bf3fa95c13536bd291cd72edda0deb3c335bfadabc8a36fba1492a8d37a85f1962641bb0b27ab840110ed932403bd4fa71f869dc2d45a0ef2254efc676f82f65d185be5614b3c73c1faf40b27aa17c0c4b315bd95abdc186d4e7b474ddeda87b64d36f895c27cd1b248627206339be52981a895ccb0e6a0d80b4729869a67044982d70898645e7c52990fbe039c57fc5534e3c6bb2e7f2b2056dec7944cdd5a144e9166d3072b43b05f3e8b0ebc9d51e88334952052c43319ed856fc86344513357628c427ee0058aa000a7',
      
'e' => '010001',
      
'd' => '40fc78a58dbd58f9950fad70fbb02aaa6b7b12c4ec864e19dd5d2086906464af694e7e19a4936c0a859b14dbd7473843bba2639cdf6cc50f9278338a09dc850e21ff42eb06e0e0b6b437ae01b50aed240dcebefab6fb608d89893fba1acf344cea7d5d150c43b560fe86e04dc2e991bc2d8625c0517e81f1babb89abc61d6cf5be37589795ca1ec6f033974958f90102deec426176aa475f326f0409a19eeec1f83e866a20fef1e926bbc0c9267c5c98bc8f9b34c2fc94c2f4c27bc1973bf3fb89380c2591d7b1737d1990ae5a9869dd434a42829b5ca7ee282cf2ca1beb36dcd43ca353a84dffef6dc8950c1c552a4012c60c954c29b15180a29acca4061b432e861a531dc916a7db66d2a31227aca2599036560f9bc0637b3153af7670507eb7b551419e89b7e951094aa685fffb122416ed15f10a40fd8e5b4ec6cd6820a7bbbaa73c7a1a208270335154941868af7fc90656a5086af19a06b7f88c79783b7c8aec14ec7e0016a021744a621d48309188183deda4496a868958082dcc54dec9a468f16fafc41f29f2aafb0ea7f65697f4708635c0831b6f268429906fbaeefcfafa62ec844d5416cc4055e08e3392ee2699312b9f33eb7ba72a2293635c187671316664c712a623308aa8603412cb3c989a0b326bed9e2464585ae97c10be6a36ab90f9d67a9c65b4e168006a06dd47063e4e85b4178d38229a62544387c1',
      
'p' => 'd2be3fd6b0df0e3005261321c37e1d259b3a52fc114d9cc9cf3103e3819cd72687c4e465d0e8dcf868b85a1c1807b9410d105d9a0389bffed9fa9dd81d54b9209b5e8c29968a356982a4e2478e8429055c88f1a20c34c228d733a9f7f607d94c2a09b7a714167159d19e5c66c054c9b55bc25d37ee9be442b4c6b9ad896213a0bd1839c957e6b3fd814dabb3f0174e933a0f3f6141fc8681112245c0ce5015a738a52bf878f6eb02cce3fac22fb7e02c10f7833add471824e5dc652e80b44aca9a1a57466f8e8b58b10e784cf8cd4443c3402c5be61245eb9236e5644fb88865d6855ddd07c4ac4da8e9c48b3e0d75b9541f669ef77c6c5dbc1ad2a9e3c4b3f1',
      
'q' => 'd276b0c409f616410cf148ff4cace003001fa0f94497e7001b90ca01a1929e8d6a7b43aaf78b82d56deaffaa4b087c4ab27d5d7a5197ccfe428296b4e3a2d038d3e83043f827e0dd3dadc9c7e871f975633c14a86610e856451cbf0227cc90d74ee3a00f55bfc84c6ac383b0403b2dcce962dafdb5821f20b4c457ef8122fb55bfd402f030e795e501dfcb263768d19d9f197a96c1e494eeb727db166cb1a2e3819346a4dd4a0208582128ea7fe0632aae35f1ae81141d414dd1dfeac405ceededbffd41e1c2ad857e6c47d7a5a5db6c4425edb596dd6bf908ed2213987b484023faf3cfe1fa9354706b5c8a5e3281d12d8ee5750a51c0be5e3c5e7418ef3617',
      
'dmp1' => '0ba749906da767f96fcf732f62c80e848dd8e3cddc87162c72b09b2e717462d156a0a4a09cb4c3c358c718f484bfa896d84a1762f4df2126ce96f533862bb13104666e09beb155d2c7cea6549ea4e03fd3a61ef67f064bd646502d0df124edf7303be953ebe071d42dab3c20d271ddd5918565f239d794ffbb4f61e51ebbb5aa25cab927511d08c6f3e77f9f2b9f9e50b5dd31fc06d217fdfb1c920edf59be58c8e119555c1b0b53d450a70525ee5d0f12c11d189c33da39f01c07dc5271a5d11e44669f167c23687c21f8b508ed10e14e62b6113edfb3ce1affbe1f95e8f661eb42e4b5dc401be70f781dce355839324e5c8e282c374d26c1c819ee1b123d81',
      
'dmq1' => '13d7007eda798a4b838ed354cdc39632723689143675235f8d39aef14c6be7ea68d949ddba0c3abf27e7794672605067324043299ebb72a59d5b761d833ffbe4ff84e9d7de72d3edc73cb4c2d594b8f169f365f721f8020eefe0efd8a22bd493976a39d27840e5fede29a4265f47b4df9638ad7031461ced165d53f4cdf5a03fcb1f8f4f592cdba284f4b5cfda75551d48bc3c242e0f0043289ce7384bf2caea2b72d8bbfde8561cb74218fb5226b2f2790db8c4bc824ae7b7104bcd73c1206aa978e9c4e62555fa399ab7830aa881f0c8d3d27ec5c405c3aa25c08a9c5b32ca6919e515f9b58761f45f0a9038a5063bd3d19eabd3d735163d07efd77dea3eed',
      
'iqmp' => '9292307c82d43555533eb74c25243d05bc6af02906533d761ecc7943c3bf0a3ddd737a5e9aeecab66e5c71ac76f3ced722da0b8b0214f60dad6d268bdea90cca8e71903f532d81232bd8099182ec9953142811617a1fe70904f7a3672f1bb3f2d651e1cf1e78ff6ba14c82494a75985b1f8ae6a1eefd2d9ca54e77c5c2c370564d29af9d2a74a1b7889edd725dd0eb195cd5681e60d4339dd40457169ba120944bbe187ff4ef25236d5f0288cdd273beb6b55f520dd6431f29093c1262bae270319677fbefe00d43d4dcb5be9099290662260f292449ab99a1732b6f3a30b29cef3029817ae74f786c7502ecd49855fd3c47f15c9748d9d06bff009ff875bafa',
    ],
  ],
  
'php_version' => '7.1.32 Linux x86_64',
]