functionalize the bulk of pem2openpgp.