1 | <?php |
||
15 | class ComodoDecodeCSR |
||
16 | { |
||
17 | use Traits\ComodoDecodeCSR\Getters; |
||
18 | use Traits\ComodoDecodeCSR\Setters; |
||
19 | |||
20 | protected $MD5; |
||
21 | protected $SHA1; |
||
22 | protected $Endpoint = "https://secure.comodo.net/products/!decodeCSR"; |
||
23 | protected $CSR; |
||
24 | protected $Form = [ |
||
25 | 'responseFormat' => 'N', |
||
26 | 'showErrorCodes' => 'N', |
||
27 | 'showErrorMessages' => 'N', |
||
28 | 'showFieldNames' => 'N', |
||
29 | 'showEmptyFields' => 'N', |
||
30 | 'showCN' => 'N', |
||
31 | 'showAddress' => 'N', |
||
32 | 'showPublicKey' => 'N', |
||
33 | 'showKeySize' => 'N', |
||
34 | 'showSANDNSNames' => 'Y', |
||
35 | 'showCSR' => 'N', |
||
36 | 'showCSRHashes' => 'Y', |
||
37 | 'showSignatureAlgorithm' => 'N', |
||
38 | 'product' => '', |
||
39 | 'countryNameType' => 'TWOCHAR' |
||
40 | ]; |
||
41 | private $request; |
||
42 | |||
43 | 3 | public function fetchHashes() |
|
53 | |||
54 | 3 | public function checkInstalled() |
|
71 | |||
72 | 1 | public function generateDVC() |
|
79 | |||
80 | 1 | private function decodeCSR() |
|
92 | |||
93 | 3 | private function processResponce() |
|
114 | } |
||
115 |