fix heartbleed cert parsing, fix #4309
use get_data
Fix heartbleed cert parsing, lands #4338, closes #4309