Revert SSL to using old non-ASN1 logic to verify certs.

Required to get RubyGems to install gems from remote https sources
again, and probably required for any https connections.

This should be reverted once ASN1 returns the proper types for
decoded input (#1102).