How To Force SSL With Apache

On the Internet, all traffic in the 21st century shall be encrypted. That’s easy to do with Apache. Follow these instructions to force all traffic to the SSL pipe. Rewrite Engine On RewriteCond %{HTTPS} Off RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Now any request that isn’t on https is redirected to https. This solution is port, host,

PHP 5.6 SoapClient verify_peer With Self-Signed Certificate

By default, PHP 5.6 has verify_peer enabled for openssl connections. So if you use the SoapClient to connect via SSL to a soap server, you’ll likely see “Could not connect to host” connection failures. To fix this, you need to generate some certificates on the server running your PHP applications and making the Soap calls.