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-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0LKHFXxsScu/XtcnI526
MC67ZuWtBXJRuwbEySBs3dG7LThX4JmY4Q2swlSuEzY9U9VZY54qmvxZ2Na7VBlz
ZK8OKnm+3wvz/T3Wh3tlvLGCUEJBGlAcY3Qt7J01Bs/GBX5kPzqHpnqXZaq9hLzl
oXBkaxRitHJRkljPkcyIg+bKIHvnnzNscm4k51/yYxHsHAI8LDztrEuIu62gRe4O
F/lZl4DOG6D7lxH9QdbRHb8JObBtEOpSCOZYKX5Xh+Py9h38QfqMjV+PN+XlUuGd
JT5EQ+TKO11bcUScllNn6O1QcQ49GN6MvZLCpWz60ktFJ7Qy10We7Xaff4Zjhi8K
GwIDAQAB
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => 'в|lI˿^\'#0.frQ lѻ-8W T6=SYc*YֻTsd*y =և{ePBAPct-5~d?:zepdkbrQXϑ̈ {3lrn$_c<,<KEYA    9mRX)~WA_7R%>DC;][qDSgPq=ތ¥lKE\'2Evc/
'
,
        
'e' => '' "\0" '',
        
'd' => 'U\'C& >!V)?%&c}H"Ba$ HJ?Hk9CQDAnKcuo`܁+7"-ޭAjG,!ÞV\\sPHXըnw
Uy8o^˷b.`,Iݳum7 PVZzB    |z-    RXLG<e(yEʺDr!Z_5V*/m$p*Zy|ȼ憡'
,
        
'p' => '0&%' "\0" 'U <Y~vLHxv2C7͖$Sl0\\Z&]$v|rXF̃Es:xy' "\0" ')' "\0" 'c׀vuFÔ05^SDa7b>w\' ',
        
'q' => 'ffr |]Km;K!y :CϬ}w 4џŇj`/Oꦢ~3pq맨' "\0" 'z)̔7sMP¿f511',
        
'dmp1' => 'C:S%[(Y>vЙ
-Jc֖Z@]XCxPrĸuX0j~8yhiC94&X*\\C
&hi3' 
"\0" ':*n?iK?    \\BJ@W',
        
'dmq1' => 'EC=%_)NafK?x)R.b JɩFW:GL~Ơ6X!=/Hj@wǧ]GLbI-SOZ"0{%i%>@ԓ\\zо',
        
'iqmp' => '-0Jdjcj sdmvuqN |#~DVytHg8    ubOjV4D2B5KKLSߩ:smx2XTBl*3',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'd0b287157c6c49cbbf5ed727239dba302ebb66e5ad057251bb06c4c9206cddd1bb2d3857e09998e10dacc254ae13363d53d559639e2a9afc59d8d6bb54197364af0e2a79bedf0bf3fd3dd6877b65bcb1825042411a501c63742dec9d3506cfc6057e643f3a87a67a9765aabd84bce5a170646b1462b472519258cf91cc8883e6ca207be79f336c726e24e75ff26311ec1c023c2c3cedac4b88bbada045ee0e17f9599780ce1ba0fb9711fd41d6d11dbf0939b06d10ea5208e658297e5787e3f2f61dfc41fa8c8d5f8f37e5e552e19d253e4443e4ca3b5d5b71449c965367e8ed50710e3d18de8cbd92c2a56cfad24b4527b432d7459eed769f7f8663862f0a1b',
      
'e' => '010001',
      
'd' => '55f01e1627ed439a260cbcd63e2156293f2526630f937d96d04822429c1a9861240da3f4f3e4ec0248aa4a3faa8af8bbda48b18d86f50e6b39e843cc51fe44f941e8b86ef7bd4b63c6756f60ccdc810e2b9637222ddead41faf66a47f62cfee4112111d0c39e565c86f9738ca51b5007e18b4858d5a86ea6ce77c9c9c50ab61d55e37938e0cbd6e56fa21b815ecbb7622ea1ce60e42c1d498bddb3a7a41b86756de637169e0ca4189a0ef4905005565a809f7ab442a9097cee7ae30e2d9a09eb528358ea11c94c4782bae63c65e0287945cabac944ebd30172de215aea5f7f35e70693562a2f6d24aa7f9970a70fb8f0c52ada5a797c06c8bc04c18e9de686a1',
      
'p' => 'e73005e626a02500d255b2e80caf3cc50e597e76e44c487897199d76ef3243db371780cd9624d4536c30801b065c1a5a26155d8d24767c7258af469ccc83a7a3bc45733a78790293f20029ef006305d780ba767fbe0fac941075a8054614acc39497fbfe8f15fa3035855e53c644d461eb1a378f88a97f623ed877aaa727dd0b',
      
'q' => 'e718938f99acc08566a76672207c97fa5d4b6d3b4b21b8eac579203a43a087fcb97f1586800483cface908ab7d778ae017a0dceb0c1d34d19f8fc587d3c5c16a0ed1fc602fc0bf4fdbeaa6a27e337071d9eba7a8c300fe998af30e9fd57a13291891cc94ca3773a7bf91b91e4dd450d0c1c2bf66b3be358b8631961811a01131',
      
'dmp1' => 'b743033a191e5396de251f08019e1bef1d5be5fafb28593e7690d0990a2def4a63d696bce1ab5a40b2ff935d58e243e57850f172c417c4b8a4027558306aa0c613a57e1d3888bc796899a6a415cb69431681391434269aa8588fdbdc2a5c93430a949c268368698633b7003a2a6e3f694b83e1cd3f0915b85c971ded424a4057',
      
'dmq1' => '45bafdb383dc438f3d255fdd29fe4e61664b3f1f781129d9f552122e627f8ae8f013efabd0ef0bd2db4ac9a9ed46e7e9ac5786b189cb3a47d24cb07ec6a0d236ad58213de8cad12f489d6a4077b20fc8dac7a7a45d8aec47ea4c62ea49a0f72d1c53ca164f5a2214c8d230b87b258869253e1d40e11590d493de5c7ad0beaad1',
      
'iqmp' => '8fb5812d30d14a07f813e2f5be64a3a88af26ae8636a207364c5026dba04767571dfd0f09f15e04e0d93bc7c237e9918fb44ef567974b2b687aa98480fa26708cc388817e6059b8609bb157562e3184f876a56f1e2a4349191b3f044329cd9428ff9e6354b154bed9f4c53dfa9b9defc3a736d1a78ec3258b554426c0f2a331d',
    ],
  ],
  
'php_version' => '7.1.33 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-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuxOUO1MlAWL9Dg93YGL+
yHnt8jWF5YYMUB28bJGZgyk7lmJW4zGwCvU8X09mkj8tk+RcbyvtQsW7RoPSwKH0
imqtz57vp5w7K4jfgg5idNeWRgSJmYMecz+S9ingOxKNxjTcKJdX8v6Wx7nSsuv9
9qaINyfj2c+t3ln+7JzaVvonzLgIEUEPUyptmk2mmr6dVCQ84ztW/52HstkHDl1T
Ey4e3q2MyVnPjnYS8WzBWrC1MzJxBsLJU/FLoUCUxgY3fSk6NxbbYBnxndeyR7LP
X3RFlQTMXziH02gdid5y/upEw4cBTmi8EifiN4EByvTmtp4oXEvhdgHAu0re9PKi
pwVxBaGZZ+hexIUpu7AwMXmTq4XugaCPQ7FpGND4OJkwYHU4VoyPI5xdprouf3kt
iR/KT7cdDuvNjqrcpmGeGPK5Lwed4VAm2bTAT2wm/ZwI4yOYDLil4uSa9uNci3bQ
N3/a+ooe/uJRzrm1FipfAT/iv5xFP0tK2RiZAd6sc44V/zQj5r4rmZE1BtT6LZxu
Zl6xegV3CKYM9WzgrVIH4widbRziFcEanxu3ZC9GG/gcV7NQ/5by3bojaXAoKjVX
7ZbFszYvJW3+OLHp+3IluVIwlkZj65hyxvTiCrDelaZElkqFK6WXSN+XbHe6xiYb
cbx3i12aSjO0iN5nOYl21OkCAwEAAQ==
-----END PUBLIC KEY-----
'
,
      
'rsa' => [
        
'n' => ';S%bw`by5 Pl];bV1
<_Of?-\\o+BŻFjϞ隆;+߂btזFs?);4(WǹҲ7\'ϭYV\'̸AS*mMT$<;V]S.ޭYώvlZ32qSK@7}):7`ײG_tE_8hrDÇNh\'7涞(\\KvJqg^ą)01yCi80`u8V#].y-O͎ܦa/P&ٴOl&# \\v7Qι*_?⿜E?KJެs4#+5-nf^zw lRmd/FWPݺ#ip(*5Wų6/%m8r%R0Fcr
ޕDJ+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dDA1t`' "\0" '&h',
      ],
      
'type' => 0,
    ],
    
'hex' => [
      
'n' => 'bb13943b53250162fd0e0f776062fec879edf23585e5860c501dbc6c919983293b966256e331b00af53c5f4f66923f2d93e45c6f2bed42c5bb4683d2c0a1f48a6aadcf9eefa79c3b2b88df820e6274d79646048999831e733f92f629e03b128dc634dc289757f2fe96c7b9d2b2ebfdf6a6883727e3d9cfadde59feec9cda56fa27ccb80811410f532a6d9a4da69abe9d54243ce33b56ff9d87b2d9070e5d53132e1edead8cc959cf8e7612f16cc15ab0b533327106c2c953f14ba14094c606377d293a3716db6019f19dd7b247b2cf5f74459504cc5f3887d3681d89de72feea44c387014e68bc1227e2378101caf4e6b69e285c4be17601c0bb4adef4f2a2a7057105a19967e85ec48529bbb030317993ab85ee81a08f43b16918d0f8389930607538568c8f239c5da6ba2e7f792d891fca4fb71d0eebcd8eaadca6619e18f2b92f079de15026d9b4c04f6c26fd9c08e323980cb8a5e2e49af6e35c8b76d0377fdafa8a1efee251ceb9b5162a5f013fe2bf9c453f4b4ad9189901deac738e15ff3423e6be2b99913506d4fa2d9c6e665eb17a057708a60cf56ce0ad5207e3089d6d1ce215c11a9f1bb7642f461bf81c57b350ff96f2ddba236970282a3557ed96c5b3362f256dfe38b1e9fb7225b95230964663eb9872c6f4e20ab0de95a644964a852ba59748df976c77bac6261b71bc778b5d9a4a33b488de67398976d4e9',
      
'e' => '010001',
      
'd' => 'b47725b6b8f568ca0a1da733dcaa82e7f81f5f58dc8ad6ee47d6f7aeb0222bd1f9e68f850bf421c3e060d5fcad91051b3da0bcbe8ddc7a5e6ed38e551f78dc832e77ef627e03ed8572f0bdd423763d0abfaf59af3784b23a3128df08f48367d9964be5d9ce6d8c3ea64b9369bb2a46baca597b03a31cb9e81b282bf02b3bc14dde58f16aeee2191b7c4170e9d97f4bc44fa8098896f4ccef3539857cf6117713789954ec8c74ac8bb9fd13370c57d5d9c362d91509959c4bbae8df6c825829251c3b4a2a5c8551c6953b54196a6b06fb2919fab03f4ad828c6fa980c28a83c5ad7ecdaee9aaa144b5b68316ce4c2d9cf3a7985abcb937a98244948e79dd9f6a68a5a8244ccdd91d23c141511420b6308e93dccee13bb70db764d0d1a72dc56ab03c67377e33c0fe72d6d47a7e8a445a847840d29c58d294978343c5e12247ba0ed66db4bef1af58068a534be323c6c5049cc20d8e69988eb2957f4fe320afca0b09b3035aede81303eacca68c2e812f1e99a991fc06bc8b9c0e40b97274a833ceb37a176aa700bc338e20b5d9c53568cc1a4a24fa2c2fe8f194462801ed46ce35fab6aab46f2d89a5e45a28a35731f51cb8f264a8ea9e08323f6c82cfae511e0b44229fd5d652f77204909ad1470f1d7a06e50957fbfd210f464ab58484c3732bc258b8ae17607df8f0fc8592c45b0f009b23647a58bd60012f62ee6a5051e91',
      
'p' => 'f04acd862a5ba6cdc77a2dcc50aa2d85f011c4bb2ab79ba09bc04dcb0176a0db72bef22353a8651b53395c6dc1e5c72e3a4077ebb618c89188010b6f7537a971c2f3fb8db7cebc7af48c098f775cf84d8ff04a89bf63cbda3b13ab9e0f5902c7bd8eab1c21490b64115b6eac782a618fd1bc89a988f0794958fc807b03e2b0c27de7fa67b3cec78cc8d2ad1c8e3460057b8dd45c05505226d0bb9d59055c3d9d5c08b115b941c40b7c176dd08ca7405595b81713eb57b37a17cdec665cace08f262ace7e04417b31a99fbabc12bdbad965b607399f9cedd17e7ff66be7f3f506724146feea1d30b13f7bddb4f99c33791b8dd0c20c87ea29107d873ceff02695',
      
'q' => 'c74e3b5126ad717d8f74ac8a0f3c548a17e0870661b1f6cbbf3583236913fa66461f4cb2a47465514a4a6cb1a9f0a75912e18b30daac97511ff7f22886b22ca2ded5b1d6775c929820ec4878e32c23ac97dede5488dd47e8971d85a6d957a8f850f266905212891e5b23f811aefec1b7d08771eb411b005103b15d8b5048dfca5b9ff0687f9d6af84cf027b05e7d0e680baddb8a65e5c9ac11b40fdf79e935688c5a80c552373d07618a89d2476c2fdcc6326706db80dd3c98f3c4b13fc46edfd9b99f5a5c356152b6784dbf0de900d066d9c7abe7b147cda8fe1d900d007cfb9b03e30d4919e2d65e742a56e545b50a55627a9197dc25dad0f078a9684cc405',
      
'dmp1' => '1a8e79d6691a05fe5a1c73b14ffceed90da63912e26eb66172b53723c77e9fda80fcff6fce101f547cc72b22ea3a05e06309baf72f01e030cd52283c623d0b9a0a0cc2f16fae0680a44451ce2c47f71d435a3032b717457151f423946d67cdf9db46483ceca4d10077369eadaafe2c1823faed4ff255796214d69b307d4671789d47a5120efa3c6d9fc840df960bcdcced51c8757f14d86f77c43468a14207813ba9ae40935fe455cc9a1e45dd35a2d3929f6cd583be0694e8ca9664ddbb317a40a29c7daae4bdc3c85661e1e54458c12c0f890ee2480ab48b8182ef7c0c2739562946ba678f6051468ddefbe056560dfd7097f0ca47bf2658af36e212367d5d',
      
'dmq1' => 'b17c4f829308fdfa2cd860168a3ed5a22c653c994842ed5ec0266d64095d4b2dece04eb2ff94cfed365554ba5a75fef169c904e53ab75c015890bb4bafb7d7dc2ac8ee97e8afbdb4500d5af49c89603381036dc6a62338b83e6a81ecf5bc04b32d92d017519f44108e6557b297be32d0f898c5b014c870ddb4862ca1b59b4fffaadca180cdb467e03ad3dae44b20dec575311c43013f42fb42c0b129f82cdfecfca053f064a8e066444cd533377b769c0abc33d77d7e2286a646df30617312b1b1f8859a38672906398ca4dfb109803a167d763cf6157fb5fbfa606539cee77e40ab9374ef56681533040bf85a305b6a9a631a77b15ed12f2dc6180df4ddf7e9',
      
'iqmp' => '264179b5f7de2c7805f0b1c596c9260f8d1d21babbaaca6365ed6e4d2af6a06b3097310cabf6fac53d6b048aae4f34ce0b05c1ca7a92d770d29a83c5c31b0e98dc8a932fbcb6ffb9fe660ef2ffe29c52f3bcd7de93385f6466814a142f364072286592c3aa1985ab2ba69b95f50511af12c5e71d32d6962f2772c21577ed982356dc31a6bcac53619b93c13d19b47babb8dc8e7fdd973bda70391545236128a25cec13951997168ae6842f0351d6530f163d0faa82283f0dc987c24081ee98385000633d734db48270fb541f31494e380fa06fc0988e0b6f584969cccf8236adfad139ac3f44ed644498e1df1c413174a8c2601400e80126e68968a3cef7cbc5',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]