Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Cannot make connection with openSSL 3.4.0 #5680

Open
toantk238 opened this issue Nov 4, 2024 · 6 comments
Open

Cannot make connection with openSSL 3.4.0 #5680

toantk238 opened this issue Nov 4, 2024 · 6 comments

Comments

@toantk238
Copy link

🐛 Bug Report

After upgrade openssl to 3.4.0, flipper cannot make connection to Android phone

[conn] Device logs until now are found below
[conn][device][log][2024-11-04T09:40:29.531Z][info] [conn] Socket event: close
[conn][device][log][2024-11-04T09:40:29.531Z][info] [conn] Reconnect
[conn][device][log][2024-11-04T09:40:32.533Z][info] [conn] Start sync
[conn][device][log][2024-11-04T09:40:32.533Z][info] [conn] Certificate exchange needed verification
[conn][device][log][2024-11-04T09:40:32.533Z][info] [step][started] Check required certificates are present
[conn][device][log][2024-11-04T09:40:32.534Z][error] [step][failed] Check required certificates are present: 
[conn][device][log][2024-11-04T09:40:32.534Z][info] [step][started] Establish certificate exchange connection
[conn][device][log][2024-11-04T09:40:32.534Z][info] [conn] Connect and exchange certificate
[conn][device][log][2024-11-04T09:40:32.534Z][info] [step][started] Attempt to connect for certificate exchange
[conn][device][log][2024-11-04T09:40:32.534Z][info] [step][success] Attempt to connect for certificate exchange
[conn][device][log][2024-11-04T09:40:32.539Z][info] [step][success] Establish certificate exchange connection
[conn][device][log][2024-11-04T09:40:32.560Z][info] [conn] Socket event: open
[conn][device][log][2024-11-04T09:40:32.560Z][info] [conn] Request signed certificate
[conn][device][log][2024-11-04T09:40:32.560Z][info] [step][started] Reset connection store state
[conn][device][log][2024-11-04T09:40:32.560Z][info] [step][success] Reset connection store state
[conn][device][log][2024-11-04T09:40:32.560Z][info] [step][started] Generate CSR
[conn][device][log][2024-11-04T09:40:33.166Z][info] [step][success] Generate CSR
[conn] CSR created at 2024-11-04T09:40:33.166Z
[conn][info] [ 'Certificate Signing Request being processed' ]
[conn][info] [ 'Ensure OpenSSL is available' ]
[conn][info] [ 'Extract bundle identifier from CSR' ]
[conn][info] [ 'Obtain CA certificate' ]
[conn][info] [ 'Generate client certificate' ]
[conn][error] [
  'Failed to exchange certificate',
  Error: Warning: error while verifying CSR self-signature
  Error while verifying certificate request self-signature
  80CB96D3D6740000:error:05800091:x509 certificate routines:X509_REQ_verify_ex:unsupported version:crypto/x509/x_all.c:47:
  80CB96D3D6740000:error:05800091:x509 certificate routines:X509_REQ_verify_ex:unsupported version:crypto/x509/x_all.c:47:
  
      at ChildProcess.<anonymous> (/mnt/Data/Workspace/1.CloneAndRun/flipper/dist/flipper-server-linux/node_modules/openssl-wrapper/lib/index.js:88:13)
      at ChildProcess.emit (node:events:518:28)
      at maybeClose (node:internal/child_process:1105:16)
      at Socket.<anonymous> (node:internal/child_process:457:11)
      at Socket.emit (node:events:518:28)
      at Pipe.<anonymous> (node:net:337:12) {
    code: 1
  }
]

If I downgrade openssl to 3.3.2, flipper works again.

To Reproduce

Upgrade openssl to 3.4.0

Environment

Android device : Version 10
OS: EndeavourOS Linux x86_64

~ openssl -v
OpenSSL 3.4.0 22 Oct 2024 (Library: OpenSSL 3.4.0 22 Oct 2024)
@ankur0660
Copy link

ankur0660 commented Nov 6, 2024

➕ i am facing this issue too in
openssl version: OpenSSL 3.4.0 22 Oct 2024
mac: 13.7.1 (22H221)
flipper: 0.239.0 mac
, it worked after i downgraded my openssl to 3.3.1

@jamessawyer
Copy link

same issue
openssl version: OpenSSL 3.4.0 22 Oct 2024 (Library: OpenSSL 3.4.0 22 Oct 2024)
OS: Windows 11 Professional
flipper: 0.239.0 windows version

@QSuraj
Copy link

QSuraj commented Nov 12, 2024

Facing the same on MacOS Sequoia.
Openssl version: openssl@3 3.4.0

Edit

Ran - adb reverse tcp:8081 tcp:8081
That fixed the issue for me.

@talhatsk
Copy link

➕ i am facing this issue too in openssl version: OpenSSL 3.4.0 22 Oct 2024 mac: 13.7.1 (22H221) flipper: 0.239.0 mac , it worked after i downgraded my openssl to 3.3.1

how you downgraded openssl?

@stealkiller06
Copy link

I was able to fix the issue.
The problem is related to the OpenSSL 3.4.0

I just removed OpenSSL using this command on my Mac

brew unlink openssl

If you need to install make sure to install a different version like this

brew install openssl@3.0

@talhatsk
Copy link

I was able to fix the issue. The problem is related to the OpenSSL 3.4.0

I just removed OpenSSL using this command on my Mac

brew unlink openssl

If you need to install make sure to install a different version like this

brew install openssl@3.0

This worked, Thanks

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

No branches or pull requests

6 participants