Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public function parse(ProviderInterface $provider) |
||
29 | { |
||
30 | $parser = new CertificateParser(); |
||
31 | |||
32 | // Store the raw (array format) certificate, the PEM string and the parsed certificate in the results |
||
33 | $rawCertificate = $provider->getRawCertificate(); |
||
34 | openssl_x509_export($rawCertificate, $pemString); |
||
35 | $parsedCertificate = $parser->parse(new Certificate($pemString)); |
||
36 | |||
37 | return new ParserResults($parsedCertificate, |
||
38 | openssl_x509_parse($rawCertificate), |
||
39 | $pemString, |
||
40 | openssl_x509_fingerprint($pemString)); |
||
41 | } |
||
42 | |||
44 |