Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99078

aspnetcore on linux: Google OAuth login yields unhandled exception: "The remote certificate is invalid according to the validation procedure."

$
0
0

I have an application that works on Windows, but when moving to Linux and I try to run it, it works up until I try to log in using Google OAuth.

The errors I get are:

An unhandled exception occurred while processing the request.
AuthenticationException: The remote certificate is invalid according to the validation procedure.
System.Net.Security.SslStream.StartSendAuthResetSignal(ProtocolToken message, AsyncProtocolRequest asyncRequest, ExceptionDispatchInfo exception)

HttpRequestException: The SSL connection could not be established, see inner exception.
System.Net.Http.ConnectHelper.EstablishSslConnectionAsyncCore(Stream stream, SslClientAuthenticationOptions sslOptions, CancellationToken cancellationToken)

Exception: An error was encountered while handling the remote login.
Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler<TOptions>.HandleRequestAsync()

I'm not sure what I've done wrong, however. Looking at the Google API console, I have the right URI's setup (localhost:5001 in https), and I've self signed the cert that it's using (shows as "secure" in the browser I'm using, ("Brave")), so I'm not sure what validation procedure it's speaking of or what I need to change.


Viewing all articles
Browse latest Browse all 99078


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>