Add tests for windows and remove usage of OPENSSL to check MD5 as keytool has that capability

Add acceptance tests for CHAIN certs.
Refactor to have less duplication using include_context
Can you use a test double here? https://github.com/rspec/rspec-mocks#test-doubles