changed PEM variable to PKCS8