|
3 | 3 | # iPad
|
4 | 4 |
|
5 | 5 | - [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) |
9 | 6 | - [Access code-server using Servediter](#access-code-server-using-servediter)
|
10 | 7 | - [Raspberry Pi USB-C network](#raspberry-pi-usb-c-network)
|
11 | 8 | - [Recommendations](#recommendations)
|
12 | 9 | - [Known issues](#known-issues)
|
13 | 10 | - [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) |
14 | 14 |
|
15 | 15 | <!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
16 | 16 |
|
@@ -45,51 +45,6 @@ can add this to `keybindings.json`:
|
45 | 45 |
|
46 | 46 | 4. Test the command by using `cmd+w` to close an active file.
|
47 | 47 |
|
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 |
| - |
93 | 48 | ## Access code-server using Servediter
|
94 | 49 |
|
95 | 50 | 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:
|
149 | 104 | process](#access-code-server-with-a-self-signed-certificate-on-an-ipad)
|
150 | 105 | - Keyboard issues:
|
151 | 106 | - The keyboard disappear sometimes
|
152 |
| - [#1313](https://github.com/cdr/code-server/issues/1313), |
153 | 107 | [#979](https://github.com/cdr/code-server/issues/979)
|
154 | 108 | - Some expectations regarding shortcuts may not be met:
|
155 | 109 | - `cmd + n` opens new browser window instead of new file, and it's difficult
|
156 | 110 | to set alternative as a workaround
|
157 | 111 | - In general, expect to edit your keyboard shortcuts
|
158 | 112 | - There's no escape key by default on the Magic Keyboard, so most users set
|
159 | 113 | the globe key to be an escape key
|
160 |
| -- Trackpad scrolling does not work |
| 114 | +- Trackpad scrolling does not work on iPadOS < 145 |
161 | 115 | ([#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) |
169 | 119 | - `ctrl+c` does not stop a long-running process in the browser
|
170 | 120 | - Tracking upstream issue here:
|
171 | 121 | [#114009](https://github.com/microsoft/vscode/issues/114009)
|
@@ -199,3 +149,48 @@ In the meantime, you can manually define a shortcut as a workaround:
|
199 | 149 | ```
|
200 | 150 |
|
201 | 151 | _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