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

QUIC known issues #54

Open
4 tasks
flcl42 opened this issue Oct 12, 2023 · 0 comments
Open
4 tasks

QUIC known issues #54

flcl42 opened this issue Oct 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@flcl42
Copy link
Contributor

flcl42 commented Oct 12, 2023

OS related

error: System.Security.Cryptography.CryptographicException: ASN1 corrupted data.  ---> System.ArgumentException: The input to WriteEncodedValue must represent a single encoded value with no trailing data. (Parameter 'value')    
  at System.Formats.Asn1.AsnWriter.WriteEncodedValue(ReadOnlySpan`1 value)    
  at System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn.Encode(AsnWriter writer, Asn1Tag tag)    --- End of inner exception stack trace ---    
  at System.Security.Cryptography.Asn1.AlgorithmIdentifierAsn.Encode(AsnWriter writer, Asn1Tag tag)    
  at System.Security.Cryptography.Asn1.SubjectPublicKeyInfoAsn.Encode(AsnWriter writer, Asn1Tag tag)    
  at System.Security.Cryptography.X509Certificates.PublicKey.EncodeSubjectPublicKeyInfo()    
  at System.Security.Cryptography.X509Certificates.PublicKey.ExportSubjectPublicKeyInfo()    
  at Nethermind.Libp2p.Protocols.Quic.CertificateHelper.ValidateCertificate(X509Certificate2 certificate, String peerId)    
  at Quic2Protocol.VerifyRemoteCertificate(IPeer remotePeer, X509Certificate certificate) in /app/Program.cs:line 320    
  at Quic2Protocol.<>c__DisplayClass7_0.<DialAsync>b__1(Object _, X509Certificate c, X509Chain _, SslPolicyErrors _) in /app/Program.cs:line 296    
  at System.Net.Quic.QuicConnection.SslConnectionOptions.ValidateCertificate(QUIC_BUFFER* certificatePtr, QUIC_BUFFER* chainPtr, X509Certificate2& certificate)    
  at System.Net.Quic.QuicConnection.HandleEventPeerCertificateReceived(_PEER_CERTIFICATE_RECEIVED_e__Struct& data) --- End of stack trace from previous location ---    
  at System.Net.Quic.ValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)    
  at System.Net.Quic.QuicConnection.FinishConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    
  at System.Net.Quic.QuicConnection.ConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    
  at System.Net.Quic.QuicConnection.ConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    
  at Quic2Protocol.DialAsync(IChannel channel, IChannelFactory channelFactory, IPeerContext context) in /app/Program.cs:line 302

Interoperability related

  Dial error quic via multiaddr-select <> quic: One or more errors occurred. (Error occurred during a cryptographic operation.) 
  System.AggregateException: One or more errors occurred. (Error occurred during a cryptographic operation.)  ---> 
  System.Security.Cryptography.CryptographicException: Error occurred during a cryptographic operation.    at System.Net.CertificateValidation.BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, Boolean checkCertName, Boolean isServer, String hostName)    
  at System.Net.CertificateValidation.BuildChainAndVerifyProperties(X509Chain chain, X509Certificate2 remoteCertificate, Boolean checkCertName, Boolean isServer, String hostName, IntPtr certificateBuffer, Int32 bufferLength)    
  at System.Net.Quic.QuicConnection.SslConnectionOptions.ValidateCertificate(QUIC_BUFFER* certificatePtr, QUIC_BUFFER* chainPtr, X509Certificate2& certificate)    
  at System.Net.Quic.QuicConnection.HandleEventPeerCertificateReceived(_PEER_CERTIFICATE_RECEIVED_e__Struct& data) 
  --- End of stack trace from previous location ---    
  at System.Net.Quic.ValueTaskSource.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)   
  at System.Net.Quic.QuicConnection.FinishConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    at System.Net.Quic.QuicConnection.ConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    
  at System.Net.Quic.QuicConnection.ConnectAsync(QuicClientConnectionOptions options, CancellationToken cancellationToken)    
  at Nethermind.Libp2p.Protocols.QuicProtocol.DialAsync(IChannel channel, IChannelFactory channelFactory, IPeerContext context) in L:\dotnet-libp2p\src\libp2p\Libp2p.Protocols.Quic\QuicProtocol.cs:line 135    
  --- End of inner exception stack trace ---
@flcl42 flcl42 added the bug Something isn't working label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant