1 | <?php |
||
9 | class Pfx |
||
10 | { |
||
11 | /** |
||
12 | * @param $pfx |
||
13 | * @param $password |
||
14 | * @return string |
||
15 | * @throws \RuntimeException |
||
16 | */ |
||
17 | 1 | public static function toPem($pfx, $password): string |
|
31 | |||
32 | /** |
||
33 | * @param $pfx |
||
34 | * @return string |
||
35 | * @throws \RuntimeException |
||
36 | */ |
||
37 | 1 | private static function read($pfx): string |
|
49 | |||
50 | /** |
||
51 | * @param $p12buf |
||
52 | * @param $p12cert |
||
53 | * @param $password |
||
54 | * @return array |
||
55 | * @throws \RuntimeException |
||
56 | */ |
||
57 | 1 | private static function pkcs12Read($p12buf, array $p12cert, $password): array |
|
65 | |||
66 | /** |
||
67 | * @param $pem |
||
68 | * @param $p12cert |
||
69 | * @return string |
||
70 | */ |
||
71 | 1 | private static function addExtracerts($pem, $p12cert): string |
|
79 | } |
||
80 |