pion / dtls

DTLS 1.2 Server/Client implementation for Go
https://pion.ly/
MIT License
603 stars 160 forks source link

BadCertificate error on Linux arm64 #555

Closed hikris007 closed 1 year ago

hikris007 commented 1 year ago

Hello, I am encountering an issue with the pion/dtls project. The server runs perfectly fine on both Windows and Linux platforms, but when I try to run it on Linux arm64, I get a BadCertificate error. Here is my setup:

Server: Running on Windows 10 Client: Running on Xiaomi Router AX6 (Linux arm64)

I have thoroughly checked the certificate files and they seem to be in order. Interestingly, when I run the client on Windows 10 with the same parameters and certificate files, it works without any issues. I am not sure why this is happening. Could it be a compatibility issue with Linux arm64? Any help or guidance would be greatly appreciated. Thank you.

daenney commented 1 year ago

We don't do anything with certificates. Unless you configure them explicitly when creating the client and server, Go will use the certificate stores of each of your platforms.

It would be helpful if you could share the code in question, so we can understand what you're doing.

hikris007 commented 1 year ago

Here's part of code

截屏2023-07-06 22 04 08

@daenney

hikris007 commented 1 year ago

func (s *Server) initListener() error { This is the code

@daenney

hikris007 commented 1 year ago

I'm really sorry, I changed the client's system time and retry, and found that it worked, sorry to bother you @daenney

daenney commented 1 year ago

No worries, these things happen. Glad that was all it was!