Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Cannot make connection with openSSL 3.4.0 #5680

@toantk238

Description

@toantk238

🐛 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions