Simple Script to check sha certificate expiration date

I came across this problem over the weekend. I needed to know quickly the expiry date for our new SHA-2 certificate. After some googleing I patched together this script. OPENSSL=”/usr/bin/openssl” HOST=$1 PORT=$2 if [ “$HOST” == “” ]; then echo ‘Usage: check.sh hostname.com fi if [ “$PORT” == “” ]; then PORT=”443″ fi CMD=`echo “” …

Configuring RSYNC for backups to AWS

Configuring RSYNC for backups to AWS

Backups are important, we all understand this. Backups are also offered by most major services like Linode, which is a great failsafe. The problem that occurs when you have a need to use that backup to restore your system is that you are relying on Linode’s latest backup whenever that was (usually within 24 hours). …

How to configure a RESTful Backbone.js and PHP API

How to configure a RESTful Backbone.js and PHP API

How to configure a RESTful Backbone.js and PHP API   Backbone.js is one of the many javascript frameworks out there. Thats fine, we’re not here to talk about that ;). When trying to create a RESTful PHP API what we care about is how do we receive the data and what our endpoints should look like. Typical …

Simple PHP SOAP Client

Simple PHP SOAP Client

Simple PHP SOAP Client Recently I was asked to verify email addresses against a client’s SOAP (Simple Object Access Protocol) server to verify data. I have worked with and created RESTful APIs but haven’t really had much experience with creating a PHP SOAP client. Here is what I came up with. What is SOAP? SOAP …

Distributed Denial of Service Attacks: Four Best Practices for Prevention and Response

Distributed Denial of Service Attacks: Four Best Practices for Prevention and Response

Good read on new DDoS methods and response from Carnegie Mellon. “We have recently seen more sophisticated attacks, such as the recent Dyn attack. As IEEE Spectrum recently reported, “Attacking a DNS or a content delivery provider such as Dyn or Akamai in this manner gives hackers the ability to interrupt many more companies than …