Example #1
0
 /**
  * Get the complete path to the public key of the identity provider
  *
  * @param optional string $name The basename of the certificate or null for default
  * @param optional string $dir The directory to the certificate or null for default
  * @return string The path to the public key
  */
 static function getPathPublicKey($name = null, $dir = null)
 {
     $name = Secrets::checkName($name);
     $dir = Secrets::checkDir($dir);
     return Utils::path_concat($dir, $name . ".cert");
 }