Tag Archives | SSL

Let’s Encrypt: how to fix error Received 2 certificate(s), first certificate had names

You could give this error when renew Let’s Encrypt certificate How to fix this error: Simple, you can use this command: Result:

Read full story Comments { 0 }

How to build the OpenSSL library on CentOS

We make an example on CentOS 7 64bits. Step 1: Result: make make install

Read full story Comments { 0 }

PHP & CURL: step by step – HTTPS Source grabber

Example 3: HTTPS Source grabber Result: Note:

Read full story Comments { 0 }

PHP: Using SOCKS4 with SSL connection – part 2

Part 1: PHP: Using SOCKS4 with SSL connection The solution is use function stream_socket_enable_crypto to turn encryption on an already connected socket: We change function fsocks4sockopen to the new Now we can grab data from a HTTPS page: Result: Here the code of http://demo/tutorialspots.com/sock/gate.php

Read full story Comments { 1 }
PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

PHP CURL class support basic authorization, HTTP SOCKS5 proxy and much more

This is a useful class written by me and use it regularly. Features HTTPS connection Basic authorization, HTTP proxy SOCKS5 proxy Cookie jar and much more… For some usage, you can read more: PHP & CURL: step by step

Read full story Comments { 1 }
PHP: Using SOCKS4 with SSL connection

PHP: Using SOCKS4 with SSL connection

Please read first: PHP SOCKS4 Interface Try to grab data from a HTTPS page like: https://www.google.com we get a empty string string(0) “” or an error 400 Bad Request: string(526) “ 400 Bad Request Bad Request Your browser sent a request that this server could not understand. Reason: You’re speaking plain HTTP to an SSL-enabled […]

Read full story Comments { 1 }