-
Notifications
You must be signed in to change notification settings - Fork 26
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
PR_END_OF_FILE_ERROR - Secure Connection Failed #36
Comments
The ciphers proposed by Hello are below
Internet Protocol Version 4, Src: 127.0.0.1, Dst: 127.0.0.1 |
@honzagit Thanks for the precise report. This is weird. The "scratch_link -d" output stops with the message "Started scratch-link", then the issue looks happening at the https connection establishment between the browser and the scratch_link. This symptom looks new. As you found, the NSSDB path difference of Snap version of Firefox should not be a problem. As a trial, I pulled out my old laptop in my drawer and installed Ubuntu 22.04 LTS. Then I tried pyscrlink with my micro:bit, but your issue was not recreated (other issue came unique to my laptop, but it is a different story). I tried both Snap version of Firefox (with NSSDB path change) and non-Snap version of Firefox, downloaded from Mozilla site. The symptom was same. With both Firefox, scratch_link printed the message "Start session for web socket path: /scratch/ble". Then the https connection was established successfully on my Ubuntu laptop. I still have no idea what is happening. One thing which might worth checking is the certificate in Firefox NSSDB and that pyscrlink uses. As for the former,
will show it. As for the latter, you can cat ./.local/share/pyscrlinkg/scratch-device-manager.cer. If these are different, that would be the cause of the failure. If these are same, then I really have no idea... |
I would say that the certs are same even diff does not think so...
|
The certutil exports the certificate with the character ^M (carriage-return) at the end of each line. If you export the certificate to file and open it with vi, you will see it. |
It is solved
moved me forward (uninstall also yt-dlp) so: Many Thanks!!!!!!!!!! |
Hello,
the device search stops immediately so I can't find my wedo 2.0 device. The scratch-link is resetting session immediately after TLS Hello.
I am running firefox 111.0 on
$ cat /etc/issue
Ubuntu 22.04.2 LTS \n \l
with python 3.10
this might be same as #35
but not affected by #34
Installed as root:
1)
apt install bluez libbluetooth-dev libnss3-tools libcap2-bin python3-pip libglib2.0-dev python3-bluez python3-websockets
pyscrlink-0.2.6 with bluepy, and older version later too (below):
Requirement already satisfied: websockets in /usr/lib/python3/dist-packages (from pyscrlink==0.2.5) (9.1)
Requirement already satisfied: pyOpenSSL in /usr/lib/python3/dist-packages (from pyscrlink==0.2.5) (21.0.0)
Requirement already satisfied: pybluez in /usr/lib/python3/dist-packages (from pyscrlink==0.2.5) (0.23)
Requirement already satisfied: bluepy in /usr/local/lib/python3.10/dist-packages (from pyscrlink==0.2.5) (1.3.0)
Installing collected packages: pyscrlink
Successfully installed pyscrlink-0.2.5
set rights
$ bluepy_helper_cap
Set capacbility 'cap_net_raw,cap_net_admin' to /usr/local/lib/python3.10/dist-packages/bluepy/bluepy-helper
and verified
sudo getcap /usr/local/lib/python3.10/dist-packages/bluepy/bluepy-helper
/usr/local/lib/python3.10/dist-packages/bluepy/bluepy-helper cap_net_admin,cap_net_raw=eip
step 2 has been tested also as user, so both pyscrlink and bluepy were stored in home dir, ...same issue
$ python3 ./.local/lib/python3.10/site-packages/pyscrlink/bluepy_helper_cap.py
Set capacbility 'cap_net_raw,cap_net_admin' to /home/user/.local/lib/python3.10/site-packages/bluepy/bluepy-helper
The symptoms:
Secure Connection Failed
An error occurred during a connection to device-manager.scratch.mit.edu:20110. PR_END_OF_FILE_ERROR
$ /usr/local/bin/scratch_link -d
Print debug messages
2023-03-12 20:34:08,165 set scan_seconds: 10.0
2023-03-12 20:34:08,174 Certificate is ready in FireFox NSS DB: /home/user/.mozilla/firefox/xxxxxxx.default
2023-03-12 20:34:08,181 Certificate is ready in FireFox NSS DB: /home/user/.mozilla/firefox/xxxxxx.default-release
2023-03-12 20:34:08,188 Certificate is ready for Chrome
2023-03-12 20:34:08,556 Started scratch-link
2023-03-12 20:04:21,899 Generated certificate: /home/user/.local/share/pyscrlink/scratch-device-manager.cer
2023-03-12 20:04:21,899 Generated key: /home/user/.local/share/pyscrlink/scratch-device-manager.key
2023-03-12 20:04:21,908 Old certificate is in /home/user/.mozilla/firefox/xxxxxxx.default.
2023-03-12 20:04:21,908 Add the new certificate to /home/user/.mozilla/firefox/xxxxxxx.default
...
;; ANSWER SECTION:
device-manager.scratch.mit.edu. 900 IN A 127.0.0.1
$ netstat -tna | grep 20110
tcp 0 0 127.0.0.1:20110 0.0.0.0:* LISTEN
when "start searching" is pressed, few packets to establish connection, TLSv1 Client Hello, answered by RST
Thanks for your ideas
The text was updated successfully, but these errors were encountered: