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
Fixed