Certbot solves HTTPS

There is general agreement these days that the internet as a whole needs to be more secure from eavesdropping and content hijacking. This could be achieved by a general move from HTTP to HTTPS as the default protocol, but for years the issue of the certificates required to do this has been dominated by the SSL certificate mafia. This cartel which includes Symantec, RapidSSL, GeoTrust and Thawte has discouraged the widespread adoption of HTTPS by making it an expensive and tedious chore. Not any more.

Continue reading “Certbot solves HTTPS”

A PHP CORS example

Cross Origin Resource Sharing

gearsA webpage makes a cross-origin HTTP request whenever it requests an image, stylesheet or script from a different domain than the one which served itself. A good proportion of websites on the internet rely on the ability to make such requests. However, when a cross-origin HTTP request is initiated from within a script in a webpage, web browsers block the request for security reasons. The best example is Javascript’s XMLHttpRequest function, which follows the same-origin policy. This means that a web application using XMLHttpRequest within a script can only make HTTP requests to resources located within its own domain.

Continue reading “A PHP CORS example”

MySQL database migration

 

gearsI recently upgraded my development laptop to CentOS 7 and while I was at it built a spare laptop running the same operating system. After manually creating a dozen MySQL databases and users and then importing their data from dump files on one laptop, I wasn’t interested in going through exactly the same process again on the second laptop.

Continue reading “MySQL database migration”