fix for updates from PR2 in x509
Merge pull request #135 from mirleft/fix-polyvar

fix for updates from PR2 in x509
select a supported protocol version and ciphersuite by random