-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch #22046
Comments
These "TenantResolver" is for use in BlazorModules.cs, HttpApi.HostModules.cs, AuthServerModule.cs and WebPublicModule.cs, like |
|
My solution configuration:
|
Your SSL certificate is invalid. You can try to use
|
ok, thanks, where I can find this certificate? |
The pfx file( |
After changing all "localhost" to "getabp.net" and running DbMigrator again, the same error remains. |
My AuthServerModule:
My BlazorModule:
My HttpApi.Host:
My Web.Public:
|
You can check the sample code and compare it with yours. Sample code works well with SSL. |
I'm developing a project using a Domain Tenant Resolver, I can do login in default tenant with admin master, but when I try to log in with the tenant, I receive an error message:
AuthenticationException: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
HttpRequestException: The SSL connection could not be established, see inner exception.
System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, bool async, Stream stream, CancellationToken cancellationToken)
AuthServer/appsetings.json:
Blazor/appsetings.json:
DbMigrator/appsettings.json:
HttpApi.Host/appsettings.json
WebPublic/appsettings.json:
Can someone help me?
The text was updated successfully, but these errors were encountered: