Catching anything is not so good, `catch (e if e instanceof PemVerfificationError) {}` maybe?