Skip to content

Commit 2c0576b

Browse files
committed
Task scheduler should ignore bad ssl certificates
1 parent fe07c6e commit 2c0576b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Libraries/SmartStore.Services/Tasks/TaskScheduler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ protected internal virtual void CallEndpoint(string url)
168168
return;
169169

170170
var req = (HttpWebRequest)WebRequest.Create(url);
171-
req.UserAgent = "SmartStore.NET";
171+
req.ServerCertificateValidationCallback += (sender, cert, chain, errors) => true;
172+
req.UserAgent = "SmartStore.NET";
172173
req.Method = "POST";
173174
req.ContentType = "text/plain";
174175
req.ContentLength = 0;

0 commit comments

Comments
 (0)