The comparison of bytes vs string of the CA certificate produces a
false negative. This leads to rewriting certificates and affecting
connectivity to services.
Read in the certificate as bytes as well for a bytes vs bytes
comparison.
Change-Id: Icaf99f6a069c152f901210c38b26e71622560693
Closes-Bug: #1762431
(cherry picked from commit 5229518702)