We have got stuck in our development of a web service client with wse 2.0 sp3.
Its a secure webservice over ssl with WS-Trust and WS-Security.
We get SecurityExcepti on: WSE537 and cant get past this.
Have searched the all over the web but cant find anyone with a similar issue.
When we send a RequestSecurity Token this error message shows in the console:
(partly in swedish)
Ohanterat undantag: Microsoft.Web.S ervices2.Securi ty.SecurityFaul t: The
security
token could not be authenticated or authorized --->
System.Security .SecurityExc
eption: WSE537: The certificate's trust chain could not be verified with the
fol
lowing reason: Ett nödvändigt certifikat är inte inom sin giltighetstid när
det
verifieras mot den aktuella systemklockan eller tidsstämpeln i den signerade
fil
en.
..
at Microsoft.Web.S ervices2.Securi ty.X509.X509Cer tificateChain.V erify()
at Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityToken.Ve rifyTrust()
at Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityToken.Ve rify()
at
Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityTokenMan ager.VerifyTok
en(SecurityToke n securityToken)
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .LoadBinarySec
urityToken(XmlE lement element)
--- Slut på stackspårning för interna undantag ---
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .LoadBinarySec
urityToken(XmlE lement element)
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .GetTokenFromX
ml(XmlElement element)
at Microsoft.Web.S ervices2.Securi ty.Security.Loa dToken(XmlEleme nt
element, Se
curityConfigura tion configuration, Int32& tokenCount)
at Microsoft.Web.S ervices2.Securi ty.Security.Loa dXml(XmlElement element)
at
Microsoft.Web.S ervices2.Securi ty.SecurityInpu tFilter.Process Message(SoapEn
velope envelope)
at Microsoft.Web.S ervices2.Pipeli ne.ProcessInput Message(SoapEnv elope
envelope
)
at
Microsoft.Web.S ervices2.Messag ing.SoapClient. SendRequestResp onse(String me
thodname, SoapEnvelope envelope)
at
Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. RequestSecurit
yToken(Security TokenMessage request, String methodName)
at
Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. IssueSecurityT
oken(RequestSec urityToken request)
The swedish error message is in english(with kinda bad translation)
A necessary certifikate is not in valid when verified against the actual
systemtime or the timestamp in the signed file.
Dunno wich certificate they mean... all we are using are valid?
Anyone who is able to push us in the right direction?
Its a secure webservice over ssl with WS-Trust and WS-Security.
We get SecurityExcepti on: WSE537 and cant get past this.
Have searched the all over the web but cant find anyone with a similar issue.
When we send a RequestSecurity Token this error message shows in the console:
(partly in swedish)
Ohanterat undantag: Microsoft.Web.S ervices2.Securi ty.SecurityFaul t: The
security
token could not be authenticated or authorized --->
System.Security .SecurityExc
eption: WSE537: The certificate's trust chain could not be verified with the
fol
lowing reason: Ett nödvändigt certifikat är inte inom sin giltighetstid när
det
verifieras mot den aktuella systemklockan eller tidsstämpeln i den signerade
fil
en.
..
at Microsoft.Web.S ervices2.Securi ty.X509.X509Cer tificateChain.V erify()
at Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityToken.Ve rifyTrust()
at Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityToken.Ve rify()
at
Microsoft.Web.S ervices2.Securi ty.Tokens.X509S ecurityTokenMan ager.VerifyTok
en(SecurityToke n securityToken)
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .LoadBinarySec
urityToken(XmlE lement element)
--- Slut på stackspårning för interna undantag ---
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .LoadBinarySec
urityToken(XmlE lement element)
at
Microsoft.Web.S ervices2.Securi ty.Tokens.Secur ityTokenManager .GetTokenFromX
ml(XmlElement element)
at Microsoft.Web.S ervices2.Securi ty.Security.Loa dToken(XmlEleme nt
element, Se
curityConfigura tion configuration, Int32& tokenCount)
at Microsoft.Web.S ervices2.Securi ty.Security.Loa dXml(XmlElement element)
at
Microsoft.Web.S ervices2.Securi ty.SecurityInpu tFilter.Process Message(SoapEn
velope envelope)
at Microsoft.Web.S ervices2.Pipeli ne.ProcessInput Message(SoapEnv elope
envelope
)
at
Microsoft.Web.S ervices2.Messag ing.SoapClient. SendRequestResp onse(String me
thodname, SoapEnvelope envelope)
at
Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. RequestSecurit
yToken(Security TokenMessage request, String methodName)
at
Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. IssueSecurityT
oken(RequestSec urityToken request)
The swedish error message is in english(with kinda bad translation)
A necessary certifikate is not in valid when verified against the actual
systemtime or the timestamp in the signed file.
Dunno wich certificate they mean... all we are using are valid?
Anyone who is able to push us in the right direction?