Add functions and tests for client cert / private key APIs
Additional tests for client cert/key