Fix #8359. Report server public key in PEM format. There is a bug in
pyOpenSSL where the dumped public key begins with
'----- BEGIN PRIVATE KEY -----' due to the
OpenSSL.crypto.dump_privatekey() method hardcoding incorrect PEM headers,
which would need to be fixed in the upstream if we care enough.