我正在设置订阅请求。我收到了validationtoken
url param,所以根据我要在接下来的五秒钟内回复的文档:
text\plain
。200
响应代码。 这告诉Outlook通知服务,侦听器收到了URL验证请求,验证成功。
我收到了一个错误:
{"error":{"code":"ErrorInvalidParameter","message":"Notification URL 'https://mycallbackurl.com/api/notify?validationtoken=NTk4NzliNzktNTE1MS00ZjE1LWJjNzctMTE4NzI4NTNhODlh' verification failed 'System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.\r\n at System.Net.HttpWebRequest.GetResponse()\r\n at Microsoft.Exchange.Services.OData.ODataPushSubscriptionCallbackUrlValidationHelper.SendRequestAndVerifyResponse(Uri callbackUrl, PushSubscription pushSubscription)'."}
这是我尝试使用该验证令牌的回复:
请求
https://mycallbackurl.com/api/notify?validationtoken=NTk4NzliNzktNTE1MS00ZjE1LWJjNzctMTE4NzI4NTNhODlh
响应代码
200
回应身体
NTk4NzliNzktNTE1MS00ZjE1LWJjNzctMTE4NzI4NTNhODlh
响应标题
Date: Mon, 16 May 2016 09:42:50 GMT
Server: Apache-Coyote/1.1
Access-Control-Allow-Origin: chrome-extension://aejoelaoggembcahagimdiliamlcdmfm
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Authorization, Accept, Origin, Content-Type, Access-Control-Allow-Credentials, Access-Control-Allow-Origin
Access-Control-Expose-Headers: X-Api-Version
Access-Control-Max-Age: 3600
Access-Control-Allow-Methods: POST, PATCH, PUT, GET, OPTIONS, DELETE
Allow: POST, PATCH, PUT, GET, OPTIONS, DELETE
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Expires: 0
Pragma: no-cache
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Api-Version: 1.3
Content-Type: text/plain;charset=UTF-8
Content-Length: 48
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
唯一认为我所提供的内容和内容类型之间的变化是内容类型:
text/plain
text/plain;charset=UTF-8
假设这是错误的原因,允许两种情况都没有意义吗?
答案 0 :(得分:0)
错误表示无法建立安全连接(SSL)。您的SSL证书可能存在问题。它可能是自发的证书吗?