docs: minor README updates

This commit is contained in:
Toby 2021-12-29 16:40:46 -08:00
parent 1c06b66cdc
commit 99ace70150
2 changed files with 9 additions and 7 deletions

View File

@ -418,11 +418,11 @@ To change the logging timestamp format, set `LOGGING_TIMESTAMP_FORMAT`
1. Suppose the server address is `123.123.123.123`, UDP port `5678` is not blocked by firewall
2. openssl is already installed
3. hysteria is already installed in `/root/hysteria/` directory
3. hysteria is already installed in `/root/hysteria/`
<details>
<summary>4. Generate custom CA certificate</summary>
- Run below shell in `/root/hysteria/` folder
- Run the script below in `/root/hysteria/`
``` shell
#!/usr/bin/env bash
@ -478,10 +478,12 @@ EOF
```
</details>
5. Server side: copy `server.json``hysteria.server.crt``hysteria.server.key` to `/root/hysteria/` directory, run `/root/hysteria/hysteria -c /root/hysteria/server.json server` command
5. On the server side, copy `server.json`, `hysteria.server.crt`, `hysteria.server.key` to `/root/hysteria/`,
run `/root/hysteria/hysteria -c /root/hysteria/server.json server`
6. Client side: Assuming that the client directory is also`/root/hysteria`, copy `client.json``hysteria.ca.crt` to `/root/hysteria/` directory, run `/root/hysteria/hysteria -c /root/hysteria/client.json` cmmand
6. On the client side, assuming that the client is also in `/root/hysteria`, copy `client.json`, `hysteria.ca.crt`
to `/root/hysteria/`, run `/root/hysteria/hysteria -c /root/hysteria/client.json`
7. After generating CA certificate, modify the server address, port and certificate file path according to your own situation, add obfs and alpn to prevent the first time to be walled in some environment, after the first test passed in full parameters, you can remove the unnecessary parameters such as obfs and alpn in your own network environment.
7. After getting your certificate, modify the server address, port, certificate path, etc. according to your needs
8. If you are using shadowrocket on IOS, you can airdrop the file `hysteria.ca.crt` to your iPhone and install it, then you can use custom CA certificate.
8. If you are using Shadowrocket on iOS, you can airdrop the file `hysteria.ca.crt` to your device and install it

View File

@ -463,4 +463,4 @@ EOF
7. 生成CA证书之后根据自身情况修改服务器地址、端口和证书文件路径加上`obfs``alpn`是防止首次在某些环境下被墙,第一次在全参数情况下测试通过后,可以自身网络环境删除不必须要参数,比如`obfs``alpn`.
8. IOS端如果使用的是小火箭shadowrocket可以把文件`hysteria.ca.crt` airdrop到手机然后在手机上安装并信任后, 就可以使用自定义CA证书了。
8. iOS 端如果使用的是小火箭 Shadowrocket可以把文件`hysteria.ca.crt` airdrop到手机然后在手机上安装并信任后, 就可以使用自定义CA证书了。