Correct Read pem file function call

Jira Issue: WP-758
Merge pull request #464 from ziransun/cert_read

Correct Read pem file function call