@@ -150,6 +150,9 @@ |
||
| 150 | 150 | return "-----BEGIN {$type}-----\n{$pem}-----END {$type}-----\n"; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | + /** |
|
| 154 | + * @param \Closure $callable |
|
| 155 | + */ |
|
| 153 | 156 | protected function guardAgainstUserErrorsFromPhpSeclib($callable) |
| 154 | 157 | { |
| 155 | 158 | set_error_handler(function ($errno, $errstr, $errfile, $errline) { |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Spatie\CertificateChain; |
| 4 | 4 | |
| 5 | +use Spatie\CertificateChain\Exceptions\CouldNotCreateCertificate; |
|
| 6 | +use Spatie\CertificateChain\Exceptions\CouldNotLoadCertificate; |
|
| 5 | 7 | use phpseclib\File\ASN1; |
| 6 | 8 | use phpseclib\File\X509; |
| 7 | -use Spatie\CertificateChain\Exceptions\CouldNotLoadCertificate; |
|
| 8 | -use Spatie\CertificateChain\Exceptions\CouldNotCreateCertificate; |
|
| 9 | 9 | |
| 10 | 10 | class Certificate |
| 11 | 11 | { |