We've configured an Identity Injection policy which injects x509 certificate data into different custom headers. The certificate subject is injecting fine. The certificate Serial number is injecting fine. The certificate Issuer is injecting fine. However, when we inject this entire certificate:

MIIFkzCCBHugAwIBAgIIKykxpZ5+jtcwDQYJKoZIhvcNAQEFBQ AwgZAxGDAWBgNV BAkMDzIgUC4gVm9sb3YgU3RyLjEdMBsGA1UEAwwUU3RhbXBJVC BRdWFsaWZpZWQg Q0ExIjAgBgNVBAoMGUluZm9ybWF0aW9uIFNlcnZpY2VzIFBsYy 4xDjAMBgNVBAcM
......................(too long)

in the application we get this in the header: MIIEe6ADAgECAggrKTGlnn6O1zANBgkqhkiG9w0BAQUFADCBkD EYMBYGA1UECQwPMiBQLiBWb2xvdiBTdHIuMR0wGwYDVQQDDBRT dGFtcElUIFF1YWxpZmllZCBDQTEiMCAGA1UECgwZSW5mb3JtYX Rpb24gU2VydmljZXMgUGxjLjEOMAwGA1UEBwwFU29maWExFDAS BgNVBAgMC0I6ODMxNj..........................(too long)

Obviously, what we get injected is not the same as the real one and it's about half the size. Any ideas where the problem is?

Cheers,
Milko