Join 4,000+ others and never miss out on new tips, tutorials, and more.
4.x is outdated, please check the latest version 22.x
pecl install openswoole-22.0.0
When successful, it returns
X509 certificate information, when it fails it returns
Obtain server-side certificate information.
This method can only be used once SSL has been completed and the handshake is successful.
openssl_x509_parse which is provided by the OpenSSL library can be used to parse the certificate information.
You must have installed Swoole using
--enable-openssl for this to work.