Fixing exception in get_pkcs7_der