Fixing error with ssl decrypt