Corrected to properly create PKey and Certificate when content specified instead of file path