Added new function for reading the private certificate.