﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx<description>Security Assertion Markup Language well known as SAML is an XML standard for exchanging authentication and authorization data between security domains, that is, between an identity provider and a service provider . SAML is a product of the OASIS Security</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#521324<pubdate>Wed, 27 Feb 2013 08:37:25 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:521324</guid><dc:creator>Danila Polevshikov</dc:creator><description>&lt;p&gt;I got expection while validating manually created SAML token:&lt;/p&gt;
&lt;p&gt;The Saml2SecurityToken cannot be validated because the IssuerToken property is not set. Unsigned SAML2:Assertions cannot be validated.&lt;/p&gt;
&lt;p&gt;Reason was that new SamlSecurityToken(assertion) is not sign token, and i have to use Saml2SecurityToken(Saml2Assertion assertion, ReadOnlyCollection&amp;lt;SecurityKey&amp;gt; keys, SecurityToken issuerToken) instead.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=521324" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#9132<pubdate>Wed, 14 Oct 2009 11:20:45 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:9132</guid><dc:creator>Dharma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; I tried implementing the above example (second example) it is giving an inner exception &amp;quot;The private key is not present in the X.509 certificate.&amp;quot; and more over in the statement &amp;nbsp;SamlAssertion assertion = createSamlAssertion(); are you calling the same method?? Also there is no return statement in the method. PLease explain me how to implement your code.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=9132" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#8401<pubdate>Tue, 13 Oct 2009 10:38:11 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:8401</guid><dc:creator>Dharma</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt; &amp;nbsp;After implementing your code i&amp;#39;m getting the following exception. WHat could be the problem?&lt;/p&gt;
&lt;p&gt;System.Xml.XmlException was unhandled by user code&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Message=&amp;quot;There was an error serializing the security token. Please see the inner exception for more details.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;Source=&amp;quot;System.ServiceModel&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp;LineNumber=0&lt;/p&gt;
&lt;p&gt; &amp;nbsp;LinePosition=0&lt;/p&gt;
&lt;p&gt; &amp;nbsp;StackTrace:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.ServiceModel.Security.WSSecurityTokenSerializer.WriteTokenCore(XmlWriter writer, SecurityToken token)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.Selectors.SecurityTokenSerializer.WriteToken(XmlWriter writer, SecurityToken token)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at SAMLPerfMan.login.createSamlAssertion() in C:\Documents and Settings\DJNA\My Documents\Visual Studio 2008\Projects\SAMLPerfMan\SAMLPerfMan\login.aspx.cs:line 88&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at SAMLPerfMan.login.Page_Load(Object sender, EventArgs e) in C:\Documents and Settings\DJNA\My Documents\Visual Studio 2008\Projects\SAMLPerfMan\SAMLPerfMan\login.aspx.cs:line 26&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Web.UI.Control.OnLoad(EventArgs e)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Web.UI.Control.LoadRecursive()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)&lt;/p&gt;
&lt;p&gt; &amp;nbsp;InnerException: System.InvalidOperationException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Message=&amp;quot;The SamlAssertion could not be serialized to XML. Please see inner exception for details.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; Source=&amp;quot;System.IdentityModel&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; StackTrace:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.IdentityModel.Tokens.SamlAssertion.WriteXml(XmlDictionaryWriter writer, SamlSerializer samlSerializer, SecurityTokenSerializer keyInfoSerializer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.IdentityModel.Tokens.SamlAssertion.WriteTo(XmlWriter writer, SamlSerializer samlSerializer, SecurityTokenSerializer keyInfoSerializer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.IdentityModel.Tokens.SamlSerializer.WriteToken(SamlSecurityToken token, XmlWriter writer, SecurityTokenSerializer keyInfoSerializer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.ServiceModel.Security.WSSecurityJan2004.SamlTokenEntry.WriteTokenCore(XmlDictionaryWriter writer, SecurityToken token)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;at System.ServiceModel.Security.WSSecurityTokenSerializer.WriteTokenCore(XmlWriter writer, SecurityToken token)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; InnerException: System.NotSupportedException&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Message=&amp;quot;The private key is not present in the X.509 certificate.&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Source=&amp;quot;System.IdentityModel&amp;quot;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StackTrace:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.Tokens.X509AsymmetricSecurityKey.GetSignatureFormatter(String algorithm)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.SignedXml.ComputeSignature(SecurityKey signingKey)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.Tokens.SamlAssertion.System.IdentityModel.ICanonicalWriterEndRootElementCallback.OnEndOfRootElement(XmlDictionaryWriter dictionaryWriter)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.SamlDelegatingWriter.OnEndOfRootElement()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.SamlDelegatingWriter.WriteEndElement()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at System.IdentityModel.Tokens.SamlAssertion.WriteXml(XmlDictionaryWriter writer, SamlSerializer samlSerializer, SecurityTokenSerializer keyInfoSerializer)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;InnerException: &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=8401" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#9148<pubdate>Fri, 14 Aug 2009 03:21:41 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:9148</guid><dc:creator>steven</dc:creator><description>&lt;p&gt;could you give me the library of your code?&lt;/p&gt;
&lt;p&gt;how can I use it ?&lt;/p&gt;
&lt;p&gt;sli@ttg.cc&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=9148" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#6025<pubdate>Thu, 18 Jun 2009 10:51:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:6025</guid><dc:creator>tak</dc:creator><description>&lt;p&gt;Where can I find library for this code please?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=6025" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5472<pubdate>Fri, 22 May 2009 03:17:22 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5472</guid><dc:creator>fan</dc:creator><description>&lt;p&gt;hi, when i debuy it, it stopped at &amp;quot;ser.WriteToken(xWriter, samlToken); &amp;quot;, throw out a exception&amp;quot;SamlAssertion can&amp;#39;t be serialized&amp;quot;. why?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5472" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5446<pubdate>Wed, 20 May 2009 13:00:45 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5446</guid><dc:creator>fan</dc:creator><description>&lt;p&gt; hi, in your code the &amp;quot;CertificateSearchValue x509FindType&amp;quot;, i think should be &amp;quot;x509FindType CertificateSearchValue&amp;quot;. &lt;/p&gt;
&lt;p&gt; but there is a exception that &amp;quot;The SamlAssertion could not be serialized to XML. Please see inner exception for details.&amp;quot; &amp;nbsp;when i debuy it at the code &amp;quot; ser.WriteToken(xWriter, samlToken); &amp;quot;. why? my platform are: vs2005,.net 3.5. I&amp;#39;m hoping &amp;nbsp;for your reply, thank you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5446" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5404<pubdate>Mon, 18 May 2009 17:07:37 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5404</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;Here is one method which retrieves a certificate from the proper store without of using of certificate file:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; /// &amp;lt;summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// This helper method retrieves the specified certificate from the TrustePeople store at specified location.&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;/summary&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;storeName&amp;quot;&amp;gt;The name of the store.&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;storeLocation&amp;quot;&amp;gt;The location of the store.&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;x509FindType&amp;quot;&amp;gt;The find type.&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;param name=&amp;quot;findValue&amp;quot;&amp;gt;The value to search.&amp;lt;/param&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/// &amp;lt;returns&amp;gt;The target certificate if found. Otherwise null value.&amp;lt;/returns&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public static X509Certificate2 GetCertificate(&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StoreLocation storeLocation,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;StoreName storeName,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CertificateSearchValue x509FindType,&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string findValue)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X509Store store = new X509Store(storeName, storeLocation);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;store.Open(OpenFlags.ReadOnly);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;foreach (X509Certificate2 cert in store.Certificates)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (x509FindType == CertificateSearchValue.SearchBySubjectName)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (cert.Subject == findValue)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return cert;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else if (x509FindType == CertificateSearchValue.SearchByThumbprint)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (String.Compare(cert.Thumbprint.ToString(), findValue.ToString(), true, CultureInfo.InvariantCulture) == 0)&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return cert;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return null;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5404" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5398<pubdate>Mon, 18 May 2009 03:04:41 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5398</guid><dc:creator>fan</dc:creator><description>&lt;p&gt; acccording to X509Certificate2 cert = new X509Certificate2(&amp;quot;filename.cert&amp;quot;); if i don&amp;#39;t export it, where do &amp;nbsp;&amp;quot;filename.cert&amp;quot; &amp;nbsp;store? , and what is the name of the &amp;quot;filename&amp;quot; and its full path? &lt;/p&gt;
&lt;p&gt;if i use &amp;quot;makecert.exe -sr LocalMachine -ss My -n CN=localhost -sky exchange -sk -pe&amp;quot; to generate the certi, the cert is stored in &amp;quot;My&amp;quot; storege field, how can i get it? or what&amp;#39;s the concrete value of the &amp;quot;filename.cert&amp;quot;? thank you! &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5398" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5369<pubdate>Fri, 15 May 2009 13:38:35 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5369</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;You cannot export private key by MMC if created this way. But, you don&amp;#39;t have to do it at all. new X509AsymmetricSecurityKey(cert) will do it for you.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5369" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5366<pubdate>Fri, 15 May 2009 09:32:34 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5366</guid><dc:creator>fan</dc:creator><description>&lt;p&gt;thank you for your reply. i m sorry to trouble you again. i m a beginner in saml. i &amp;nbsp;generate the certi using your method, but when i export the certi from MMC which says the private key can&amp;#39;t be exported. i have tried other ways, for exaple, .snk file, but according your code, only .cert or .cer file be accepted. i&amp;#39; d like to your reply. thanks.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5366" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5364<pubdate>Thu, 14 May 2009 15:47:22 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5364</guid><dc:creator>Damir Dobric</dc:creator><description>&lt;p&gt;It depends how you create self signed certificate. Here is the example how to create self-signed cerificate with exportable private key: &lt;/p&gt;
&lt;p&gt;makecert.exe -sr LocalMachine -ss My -n CN=localhost -sky exchange -sk -pe&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5364" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5350<pubdate>Thu, 14 May 2009 01:42:50 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5350</guid><dc:creator>fan</dc:creator><description>&lt;p&gt;i think you are bussy. when i run the progrom.&lt;/p&gt;
&lt;p&gt;X509AsymmetricSecurityKey signingKey = new X509AsymmetricSecurityKey(cert); &lt;/p&gt;
&lt;p&gt;throw out a excepion &amp;quot; can.t find the private key&amp;quot; . and you know the .cert file is genetated by makecert.exe. why?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5350" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5346<pubdate>Wed, 13 May 2009 16:09:34 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5346</guid><dc:creator>fan</dc:creator><description>&lt;p&gt;hi, I.m studing the saml in the IDM interoperation, and have some questions, can you tell me your email?so that i can communicate with you in detail. thank you?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5346" width="1" height="1"&gt;</description></item><item><title>re: Creating of SAML token</title><link />http://developers.de/blogs/damir_dobric/archive/2007/02/22/Creating-of-SAML-token.aspx#5339<pubdate>Wed, 13 May 2009 03:19:22 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:5339</guid><dc:creator>fan</dc:creator><description>&lt;p&gt;The SAML token makes a sense if it is digitally signed?&lt;/p&gt;
&lt;p&gt;Is it nessary?I think it just need encrypted.right ?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=5339" width="1" height="1"&gt;</description></item></channel></rss>