I would expect this to need an `-----END CERTIFICATE-----` line here, since it's no longer the end of the file.