Correct Read pem file function call

Jira Issue: WP-758