Fixes certificate decrypt issue