You are here

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

Parameters

string $cert:

bool $isPEMFormat:

Return value

string

File

includes/XMLSecurityKey.php, line 1611

Class

XMLSecurityDSig

Code

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