I am trying to create SAML Assertion in c#, but when I try to serialized it using WriteToken method of WSSecurityTokenSerializer class, it gives me the following exception
"The private key is not present in the X.509 certificate"
I have created the certificate using the following command,
makecert -r -pe -n "CN=CompanyXYZ Server" -b 01/01/2007 -e 01/01/2012 -sky exchange Server.cer
And for SAML assertion creation I am following the tutorial from link text
I am wondering how I am generate certificate which contains private key. Or this is any way around to (create / read) un-signed SAML Assertions.