LibWeb wants to parse these for Web Crypto. In theory Certificate parsing in LibTLS should use it as well.
This allows the decoder to fail gracefully when reading a partial or malformed TBSCertificate. We also now ensure that the certificate data is valid before making a copy of it.