getSystemCaRootBundlePath() публичный статический Метод

Locate the system root CA bundle.
public static getSystemCaRootBundlePath ( ) : string
Результат string
Пример #1
0
 public function testReturnsValidSystemCaBundle()
 {
     // Check that it at least finds a CA bundle _somewhere_.
     // (not sure how this will work out on Travis)
     $caBundlePath = Sslurp::getSystemCaRootBundlePath();
     $this->assertRegExp('/^.+\\.(pem|crt)$/', $caBundlePath);
     // Check that we can override it with some other valid bundle
     putenv('SSL_CERT_FILE=' . __DIR__ . '/../../data/Equifax_Secure_CA.pem');
     $caBundlePath = Sslurp::getSystemCaRootBundlePath();
     $this->assertSame(__DIR__ . '/../../data/Equifax_Secure_CA.pem', $caBundlePath);
     putenv('SSL_CERT_FILE');
 }