Skip to content

Commit ed09268

Browse files
authored
Merge pull request #4228 from cdr/bpmct/ipad-fixup
update iPad docs to reflect info in Sep 2021
2 parents e8063c7 + ee04915 commit ed09268

File tree

1 file changed

+52
-57
lines changed

1 file changed

+52
-57
lines changed

docs/ipad.md

+52-57
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# iPad
44

55
- [Using the code-server progressive web app (PWA)](#using-the-code-server-progressive-web-app-pwa)
6-
- [Access code-server with a self-signed certificate on an iPad](#access-code-server-with-a-self-signed-certificate-on-an-ipad)
7-
- [Certificate requirements](#certificate-requirements)
8-
- [Sharing a self-signed certificate with an iPad](#sharing-a-self-signed-certificate-with-an-ipad)
96
- [Access code-server using Servediter](#access-code-server-using-servediter)
107
- [Raspberry Pi USB-C network](#raspberry-pi-usb-c-network)
118
- [Recommendations](#recommendations)
129
- [Known issues](#known-issues)
1310
- [Workaround for issue with `ctrl+c` not stopping a running process in the terminal](#workaround-for-issue-with-ctrlc-not-stopping-a-running-process-in-the-terminal)
11+
- [Access code-server with a self-signed certificate on an iPad](#access-code-server-with-a-self-signed-certificate-on-an-ipad)
12+
- [Certificate requirements](#certificate-requirements)
13+
- [Sharing a self-signed certificate with an iPad](#sharing-a-self-signed-certificate-with-an-ipad)
1414

1515
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
1616

@@ -45,51 +45,6 @@ can add this to `keybindings.json`:
4545

4646
4. Test the command by using `cmd+w` to close an active file.
4747

48-
## Access code-server with a self-signed certificate on an iPad
49-
50-
If you've installed code-server and are [running it with a self-signed
51-
certificate](./guide.md#using-a-self-signed-certificate), you may see multiple
52-
security warnings from Safari. To fix this, you'll need to install the
53-
self-signed certificate generated by code-server as a profile on your device (you'll also need to do this to
54-
enable WebSocket connections).
55-
56-
### Certificate requirements
57-
58-
- We're assuming that you're using the self-signed certificate code-server
59-
generates for you (if not, make sure that your certificate [abides by the
60-
guidelines issued by Apple](https://support.apple.com/en-us/HT210176)).
61-
- We've noticed that the certificate has to include `basicConstraints=CA:true`.
62-
- Your certificate must have a subject alt name that matches the hostname you'll
63-
use to access code-server from the iPad. You can pass this name to code-server
64-
so that it generates the certificate correctly using `--cert-host`.
65-
66-
### Sharing a self-signed certificate with an iPad
67-
68-
To share a self-signed certificate with an iPad:
69-
70-
1. Get the location of the certificate code-server generated; code-server prints
71-
the certificate's location in its logs:
72-
73-
```console
74-
[2020-10-30T08:55:45.139Z] info - Using generated certificate and key for HTTPS: ~/.local/share/code-server/mymbp_local.crt
75-
```
76-
77-
2. Send the certificate to the iPad, either by emailing it to yourself or using
78-
Apple's Airdrop feature.
79-
80-
3. Open the `*.crt` file so that you're prompted to go into Settings to install.
81-
82-
4. Go to **Settings** > **General** > **Profile**, and select the profile. Tap **Install**.
83-
84-
5. Go to **Settings** > **About** > **Certificate Trust Settings** and [enable
85-
full trust for your certificate](https://support.apple.com/en-us/HT204477).
86-
87-
You should be able to access code-server without all of Safari's warnings now.
88-
89-
**warning**: Your iPad must access code-server via a domain name. It could be local
90-
DNS like `mymacbookpro.local`, but it must be a domain name. Otherwise, Safari will
91-
not allow WebSockets connections.
92-
9348
## Access code-server using Servediter
9449

9550
If you are unable to get the self-signed certificate working, or you do not have a domain
@@ -149,23 +104,18 @@ and tricks helpful:
149104
process](#access-code-server-with-a-self-signed-certificate-on-an-ipad)
150105
- Keyboard issues:
151106
- The keyboard disappear sometimes
152-
[#1313](https://github.com/cdr/code-server/issues/1313),
153107
[#979](https://github.com/cdr/code-server/issues/979)
154108
- Some expectations regarding shortcuts may not be met:
155109
- `cmd + n` opens new browser window instead of new file, and it's difficult
156110
to set alternative as a workaround
157111
- In general, expect to edit your keyboard shortcuts
158112
- There's no escape key by default on the Magic Keyboard, so most users set
159113
the globe key to be an escape key
160-
- Trackpad scrolling does not work
114+
- Trackpad scrolling does not work on iPadOS < 145
161115
([#1455](https://github.com/cdr/code-server/issues/1455))
162-
- Bug tracking of a WebKit fix
163-
[here](https://bugs.webkit.org/show_bug.cgi?id=210071#c13)
164-
- Tracking of [WebKit patch](https://trac.webkit.org/changeset/270712/webkit)
165-
- Alternatives:
166-
- Install line-jump extension and use keyboard to navigate by jumping large
167-
amount of lines
168-
- Use touch scrolling
116+
- [WebKit fix](https://bugs.webkit.org/show_bug.cgi?id=210071#c13)
117+
- Keyboard may lose focus in Safari / split view [#4182](https://github.com/cdr/code-server/issues/4182)
118+
- Terminal text does not appear by default [#3824](https://github.com/cdr/code-server/issues/3824)
169119
- `ctrl+c` does not stop a long-running process in the browser
170120
- Tracking upstream issue here:
171121
[#114009](https://github.com/microsoft/vscode/issues/114009)
@@ -199,3 +149,48 @@ In the meantime, you can manually define a shortcut as a workaround:
199149
```
200150

201151
_Source: [StackOverflow](https://stackoverflow.com/a/52735954/3015595)_
152+
153+
## Access code-server with a self-signed certificate on an iPad
154+
155+
If you've installed code-server and are [running it with a self-signed
156+
certificate](./guide.md#using-a-self-signed-certificate), you may see multiple
157+
security warnings from Safari. To fix this, you'll need to install the
158+
self-signed certificate generated by code-server as a profile on your device (you'll also need to do this to
159+
enable WebSocket connections).
160+
161+
### Certificate requirements
162+
163+
- We're assuming that you're using the self-signed certificate code-server
164+
generates for you (if not, make sure that your certificate [abides by the
165+
guidelines issued by Apple](https://support.apple.com/en-us/HT210176)).
166+
- We've noticed that the certificate has to include `basicConstraints=CA:true`.
167+
- Your certificate must have a subject alt name that matches the hostname you'll
168+
use to access code-server from the iPad. You can pass this name to code-server
169+
so that it generates the certificate correctly using `--cert-host`.
170+
171+
### Sharing a self-signed certificate with an iPad
172+
173+
To share a self-signed certificate with an iPad:
174+
175+
1. Get the location of the certificate code-server generated; code-server prints
176+
the certificate's location in its logs:
177+
178+
```console
179+
[2020-10-30T08:55:45.139Z] info - Using generated certificate and key for HTTPS: ~/.local/share/code-server/mymbp_local.crt
180+
```
181+
182+
2. Send the certificate to the iPad, either by emailing it to yourself or using
183+
Apple's Airdrop feature.
184+
185+
3. Open the `*.crt` file so that you're prompted to go into Settings to install.
186+
187+
4. Go to **Settings** > **General** > **Profile**, and select the profile. Tap **Install**.
188+
189+
5. Go to **Settings** > **About** > **Certificate Trust Settings** and [enable
190+
full trust for your certificate](https://support.apple.com/en-us/HT204477).
191+
192+
You should be able to access code-server without all of Safari's warnings now.
193+
194+
**warning**: Your iPad must access code-server via a domain name. It could be local
195+
DNS like `mymacbookpro.local`, but it must be a domain name. Otherwise, Safari will
196+
not allow WebSockets connections.

0 commit comments

Comments
 (0)