1 | <?php |
||
9 | class ComodoDecodeCSR |
||
10 | { |
||
11 | use Traits\ComodoDecodeCSR\Getters; |
||
12 | use Traits\ComodoDecodeCSR\Setters; |
||
13 | |||
14 | protected $MD5; |
||
15 | protected $SHA1; |
||
16 | protected $Endpoint = "https://secure.comodo.net/products/!decodeCSR"; |
||
17 | protected $CSR; |
||
18 | protected $Form = [ |
||
19 | 'responseFormat' => 'N', |
||
20 | 'showErrorCodes' => 'N', |
||
21 | 'showErrorMessages' => 'N', |
||
22 | 'showFieldNames' => 'N', |
||
23 | 'showEmptyFields' => 'N', |
||
24 | 'showCN' => 'N', |
||
25 | 'showAddress' => 'N', |
||
26 | 'showPublicKey' => 'N', |
||
27 | 'showKeySize' => 'N', |
||
28 | 'showSANDNSNames' => 'Y', |
||
29 | 'showCSR' => 'N', |
||
30 | 'showCSRHashes' => 'Y', |
||
31 | 'showSignatureAlgorithm' => 'N', |
||
32 | 'product' => '', |
||
33 | 'countryNameType' => 'TWOCHAR' |
||
34 | ]; |
||
35 | private $request; |
||
36 | |||
37 | 2 | public function fetchHashes() |
|
47 | |||
48 | 1 | public function checkInstalled() |
|
60 | |||
61 | 1 | public function generateDVC() |
|
68 | |||
69 | 1 | private function decodeCSR() |
|
81 | |||
82 | 2 | private function processResponce() |
|
100 | } |
||
101 |