implement certificate read, parse methods

This commit is contained in:
yggverse 2024-08-02 23:23:01 +03:00
parent c1f087e5ec
commit 82bdf211d6
2 changed files with 36 additions and 0 deletions

View file

@ -37,4 +37,14 @@ interface Identity
OpenSSLCertificate|string|null $crt = null, // self-signed
int $days = self::CSR_SIGN_DAYS
): OpenSSLCertificate;
// Read certificate
public static function read(
OpenSSLCertificate|string $crt
): OpenSSLCertificate;
// Dump certificate
public static function parse(
OpenSSLCertificate|string $crt
): array;
}