From faf9ddfc29676b86621bdc3033e05d63df5c2a93 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Mon, 15 Jan 2024 13:54:52 +0100 Subject: client certificate handling and workaround --- src/ClientCertificate.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/ClientCertificate.php (limited to 'src/ClientCertificate.php') diff --git a/src/ClientCertificate.php b/src/ClientCertificate.php new file mode 100644 index 0000000..d2b9530 --- /dev/null +++ b/src/ClientCertificate.php @@ -0,0 +1,28 @@ +certificate = $certificate; + } + + public function getObject(): \OpenSSLCertificate + { + return $this->certificate; + } + + public function getFingerprint(): string + { + return openssl_x509_fingerprint($this->certificate); + } + + public function parse(): array + { + return openssl_x509_parse($this->certificate); + } +} -- cgit v1.2.3