|
| 1 | +<!-- START doctoc generated TOC please keep comment here to allow auto update --> |
| 2 | +<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> |
| 3 | +# iPad |
| 4 | + |
| 5 | +- [iPad](#ipad) |
| 6 | + - [How to access code-server with a self signed certificate on iPad](#how-to-access-code-server-with-a-self-signed-certificate-on-ipad) |
| 7 | + - [Known Issues](#known-issues) |
| 8 | + |
| 9 | +<!-- END doctoc generated TOC please keep comment here to allow auto update --> |
| 10 | + |
| 11 | +# iPad |
| 12 | + |
| 13 | +## How to access code-server with a self signed certificate on iPad |
| 14 | + |
| 15 | +The following instructions assume you have code-server installed with a self signed |
| 16 | +certificate. |
| 17 | + |
| 18 | +If not, please first go through [./guide.md](./guide.md)! |
| 19 | + |
| 20 | +**warning**: Your iPad must access code-server via a domain name. It could be local |
| 21 | +DNS like `mymacbookpro.local` but it must be a domain name. Otherwise Safari will |
| 22 | +refuse to allow WebSockets to connect. |
| 23 | + |
| 24 | +The below assumes you are using the self signed certificate that code-server |
| 25 | +generates for you. If not, that's fine but you'll have to make sure your certificate |
| 26 | +abides by the following guidelines from apple: https://support.apple.com/en-us/HT210176 |
| 27 | + |
| 28 | +1. Your certificate **must** have a subject alt name that matches the hostname |
| 29 | + at which you will access code-server from your iPad. You can pass this to code-server |
| 30 | + so that it generates the certificate correctly with `--cert-host`. |
| 31 | +2. Share your self signed certificate with the iPad. |
| 32 | + - code-server will print the location of the certificate it has generated in the logs. |
| 33 | + |
| 34 | +``` |
| 35 | +[2020-10-30T08:55:45.139Z] info - Using generated certificate and key for HTTPS: ~/.local/share/code-server/mymbp_local.crt |
| 36 | +``` |
| 37 | + |
| 38 | +- You can mail it to yourself or if you have a Mac, it's easiest to just Airdrop. |
| 39 | + |
| 40 | +3. When opening it, you'll be prompted that it is available to install in settings. |
| 41 | +4. Go to `Settings -> General -> Profile`, select the profile and then hit `Install`. |
| 42 | +5. Go to `Settings -> About -> Certificate Trust Settings` and enable full trust for |
| 43 | + the certificate. |
| 44 | +6. Now you can access code-server! 🍻 |
| 45 | + |
| 46 | +## Known Issues |
| 47 | + |
| 48 | +There are a few known issues with the iPad support. |
0 commit comments