You are here

public static function XMLSecurityDSig::get509XCert in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

Parameters

string $cert:

bool $isPEMFormat:

Return value

string

File

src/XMLSecurityKey.php, line 1579

Class

XMLSecurityDSig

Namespace

Drupal\miniorange_saml

Code

public static function get509XCert($cert, $isPEMFormat = true) {
  $certs = self::staticGet509XCerts($cert, $isPEMFormat);
  if (!empty($certs)) {
    return $certs[0];
  }
  return '';
}