Detect and handle SSL certificate errors as fatal

Bug: 72247
Change-Id: I14b68f3224bff3678e27428c8d83146c898a7f4b
Merge "Detect and handle SSL certificate errors as fatal"