Truncate x509 certs for testing.