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

TLS error with automagic #287

Open
giovi321 opened this issue Jan 17, 2024 · 4 comments
Open

TLS error with automagic #287

giovi321 opened this issue Jan 17, 2024 · 4 comments

Comments

@giovi321
Copy link

Software version 3.9.3.1986
When I run the automagic script I get the following error, what can I do?

reMarkable: ~/ sh -c "$(wget https://raw.githubusercontent.com/ddvk/rmfakecloud/master/scripts/device/automagic.sh -O-)"

Connecting to raw.githubusercontent.com (185.199.108.133:443)

wget: note: TLS certificate validation not implemented

writing to stdout

-                    100% |************************************************************************************************************************************************************|   275  0:00:00 ETA

written to stdout

Getting the installer...

Connecting to github.com (140.82.121.4:443)

wget: note: TLS certificate validation not implemented

wget: TLS error from peer (alert code 80): 80

wget: error getting response: Connection reset by peer


@giovi321
Copy link
Author

Ok, I managed to upload the installer.sh to the device via scp but now I get the following error:

reMarkable: /home/ ./installer.sh install

Extracting embedded binary...

Failed to stop proxy.service: Unit proxy.service not loaded.

gunzip: invalid magic


@mintar
Copy link

mintar commented Jan 17, 2024

I have the same software version (3.9.3.1986) and get the same errors as in your first comment.

However, downloading the installer, copying it to the tablet and running it worked for me:

on the host PC

$ wget https://github.com/ddvk/rmfakecloud-proxy/releases/download/v0.0.4/installer.sh

$ md5sum installer.sh                         
2eb17bb53531082acb4f59b5d1d98e4e  installer.sh

$ scp installer.sh remarkable:

on the remarkable

reMarkable: ~/ chmod +x installer.sh
reMarkable: ~/ ./installer.sh install http://192.168.178.45:3000
Extracting embedded binary...
Failed to stop proxy.service: Unit proxy.service not loaded.
~/rmfakecloud ~
Generating CA key and crt...
Generating private key...
Generating pub key...
writing RSA key
Generating csr and crt...
Certificate request self-signature ok
subject=C = AA, ST = QQ, L = JJ, O = the culture, CN = *.appspot.com
Generation complete!
Clearing symlinks in /etc/ssl/certs...
done.
Updating certificates in /etc/ssl/certs...
rehash: warning: skipping ca-certificates.crt,it does not contain exactly one certificate or CRL
1 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
Setting cloud sync to: http://192.168.178.45:3000
Created symlink /etc/systemd/system/multi-user.target.wants/proxy.service → /etc/systemd/system/proxy.service.
Patching /etc/hosts
Stoping xochitl..
Fixing sync status...
Starting xochitl...
~

Maybe your installer.sh is corrupt and you need to download it again? The gunzip: invalid magic sounds a bit like that.

@mintar
Copy link

mintar commented Jan 17, 2024

Ah, I think I get it now.

You probably tried to use this file directly: https://github.com/ddvk/rmfakecloud-proxy/blob/master/scripts/installer.sh

However, that source file doesn't contain the generated binary. That's why you need to use this one:

https://github.com/ddvk/rmfakecloud-proxy/releases/download/v0.0.4/installer.sh


Anyway, the original problem still exists: automagic.sh fails because of the TLS error.

Also see: ddvk/rmfakecloud-proxy#11

@Slicc98
Copy link

Slicc98 commented Feb 29, 2024

Having the same problem. I'm using Win11. I thought the problem was because I was using power shell but I switch to CMS and still no joy. Can anyone give me a stupid proof explanation?

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

No branches or pull requests

3 participants