The Daily WTF
Follow
CodeSOD: Certificate of Security
Joe wanted to interact with a social media service's API. As one does, he went out and found a library for his language, and started investigating it. Now, the API was, unsurprisingly, an HTTP based API, wrapped in TLS for security. The library had a handy built-in function which validated the security certificates to ensure they were still valid and hadn't been compromised.
This would definitely be the easiest way to validate the certificate. What could possibly go wrong?