IdentityServer: The remote certificate is invalid according to the validation procedure

后端 未结 7 1747
闹比i
闹比i 2020-12-08 06:56

I\'m trying to setup SSO using OWin and Thinktecture Identity Server but I am not having any luck getting the SSL certificate to work. At least I think that\'s the problem.

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 07:35

    For .Net Core change TrustServerCertificate=False to TrustServerCertificate=True and that will solve your problem like I have it below.

    "DataConnect": "Server=tcp:127.0.0.1,1433;Initial Catalog=dbName;Persist Security Info=False;User ID=username;Password=password;MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;"
    

提交回复
热议问题