diff --git a/Source/Digst.OioIdws.OioWsTrust/Utils/XmlSignatureUtils.cs b/Source/Digst.OioIdws.OioWsTrust/Utils/XmlSignatureUtils.cs index 2b77572..8a60207 100644 --- a/Source/Digst.OioIdws.OioWsTrust/Utils/XmlSignatureUtils.cs +++ b/Source/Digst.OioIdws.OioWsTrust/Utils/XmlSignatureUtils.cs @@ -32,7 +32,7 @@ public static XDocument SignDocument(XDocument xDoc, IEnumerable ids, X5 var signedXml = new SignedXmlWithIdResolvement(doc); signedXml.SignedInfo.CanonicalizationMethod = SignedXml.XmlDsigExcC14NTransformUrl; signedXml.SignedInfo.SignatureMethod = RsaPkcs1Sha256SignatureDescription.XmlDsigMoreRsaSha256Url; - signedXml.SigningKey = cert.PrivateKey; + signedXml.SigningKey = cert.GetRSAPrivateKey(); // Make a reference for each element that must be signed. foreach (var id in ids) diff --git a/Source/Digst.OioIdws.Rest.Client/Digst.OioIdws.Rest.Client.csproj b/Source/Digst.OioIdws.Rest.Client/Digst.OioIdws.Rest.Client.csproj index fa3ccc0..0b57265 100644 --- a/Source/Digst.OioIdws.Rest.Client/Digst.OioIdws.Rest.Client.csproj +++ b/Source/Digst.OioIdws.Rest.Client/Digst.OioIdws.Rest.Client.csproj @@ -33,9 +33,8 @@ bin\Release\Digst.OioIdws.Rest.Client.xml - - ..\..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll - True + + ..\..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll @@ -76,10 +75,10 @@ Designer - + diff --git a/Source/Digst.OioIdws.Rest.Client/packages.config b/Source/Digst.OioIdws.Rest.Client/packages.config index 284ec0a..fef83be 100644 --- a/Source/Digst.OioIdws.Rest.Client/packages.config +++ b/Source/Digst.OioIdws.Rest.Client/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file