Skip to content
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

Work well before but error when upgrading to 22.04 from 20.04 #14

Open
duyet-lfg opened this issue Aug 20, 2023 · 0 comments
Open

Work well before but error when upgrading to 22.04 from 20.04 #14

duyet-lfg opened this issue Aug 20, 2023 · 0 comments

Comments

@duyet-lfg
Copy link

duyet-lfg commented Aug 20, 2023

It work very well before but now after upgrading to 22.04 I got issue like below when running app

However, the chrome still detect https OK for the service. Just error when calling this https service (authen) from another service (Microservices)

I rerun your script, delete https file, even reinstall dotnet. But still doesn't work

: requestId: 0HMT1N9A3RC2T:00000005, previousRequestId: no previous request id, message: Error Code: ConnectionToDownstreamServiceError Message: Error connecting to downstream service, exception: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---

PS /home/xxx> sudo dotnet dev-certs https --check --verbose

Welcome to .NET 7.0!

SDK Version: 7.0.400
[1] Listing certificates from CurrentUser\My
[2] Found certificates: 1 certificate
1) 530F28819E601A593EE90993E697E7540C150AC9 - CN=localhost - Valid from 2023-05-30 12:06:30Z to 2024-05-29 12:06:30Z - IsHttpsDevelopmentCertificate: true - IsExportable: true
[3] Checking certificates validity
[4] Valid certificates: 1 certificate
1) 530F28819E601A593EE90993E697E7540C150AC9 - CN=localhost - Valid from 2023-05-30 12:06:30Z to 2024-05-29 12:06:30Z - IsHttpsDevelopmentCertificate: true - IsExportable: true
[5] Invalid certificates: no certificates
[6] Finished listing certificates.
A valid certificate was found: 530F28819E601A593EE90993E697E7540C150AC9 - CN=localhost - Valid from 2023-05-30 12:06:30Z to 2024-05-29 12:06:30Z - IsHttpsDevelopmentCertificate: true - IsExportable: true

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant