[COOK-847] - use protected methods not private

https://github.com/opscode-cookbooks/openssl/pull/1/files#r4451189
fix the memoization logic per @stevendanna comments
remove string type restriction on mode