PHP uses Socket to obtain the website's SSL Certificate and public key, phpsocketssl Certificate
You cannot obtain the certificate information from the php curl request webpage. In this case, you need to use ssl socket to obtain t
650) this.width=650; "title=" Symantec Secure Site Pro SSL Certificate "src=" Http://www.evtrust.com/symantec/images/symantec.png "alt=" Symantec.png "/> Pro SSL certificate , verifying Enterprise Domain name ownership and enterprise identity information, using SGC (server gating) technology to enforce 128-bit to 256-b
Pro SSL Certificate , verifying Enterprise Domain name ownership and enterprise identity information, using SGC (server gating) technology to enforce 128-bit to 256-bit encryption, belonging to Enterprise OV Certified Professional (PRO) SSL Certificate , even if the user is using a lower version of the browser (such as
service opens a socket and binds to a port, and the different ports correspond to different services. The socket is like a porous socket, as its English intended. A host is like a room full of various sockets, each outlet has a number, some sockets provide 220 vac, some provide 110 volts AC, some provide cable TV programs. Customer software plug into different numbered sockets, you can get different services.
This article mainly introduces the use of PHP socket to obtain the
How does PHP use Socket to obtain the SSL Certificate and public key of a website?
Sample Code:
12345678910111213141516171819202122232425262728293031323334353637
// Create stream context $context = stream_context_create([ 'ssl' => [ 'capture_peer_cert' => true, 'capture_peer_cert_chain' => true, ],
This article mainly introduces the use of PHP socket to obtain the SSL certificate and public key information, the text gives a detailed sample code for everyone to reference the study, for everyone has a certain reference learning value, the need for friends below to see it together.
Requesting a Web page from Php Curl does not obtain the
This article mainly introduces the use of PHP socket to obtain the SSL certificate and public key information, the text gives a detailed sample code for everyone to reference the study, for everyone has a certain reference learning value, the need for friends below to see it together.
Requesting a Web page from Php Curl does not obtain the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.