Add generate commands

This commit is contained in:
Hellojack
2023-03-05 10:50:51 +08:00
committed by 世界
parent dd0a07624e
commit 03ce555104
7 changed files with 156 additions and 14 deletions

View File

@@ -77,11 +77,11 @@ Both if empty.
==Required==
| Method | Password Format |
|---------------|-------------------------------------|
| none | / |
| 2022 methods | `openssl rand -base64 <Key Length>` |
| other methods | any string |
| Method | Password Format |
|---------------|------------------------------------------------|
| none | / |
| 2022 methods | `sing-box generate rand --base64 <Key Length>` |
| other methods | any string |
### Listen Fields

View File

@@ -77,8 +77,8 @@ See [Listen Fields](/configuration/shared/listen) for details.
==必填==
| 方法 | 密码格式 |
|---------------|-------------------------------|
| none | / |
| 2022 methods | `openssl rand -base64 <密钥长度>` |
| other methods | 任意字符串 |
| 方法 | 密码格式 |
|---------------|------------------------------------------|
| none | / |
| 2022 methods | `sing-box generate rand --base64 <密钥长度>` |
| other methods | 任意字符串 |

View File

@@ -319,7 +319,7 @@ Handshake server address and [Dial options](/configuration/shared/dial).
==Required==
Private key, generated by `./xray x25519`.
Private key, generated by `sing-box generate reality-keypair`.
#### public_key
@@ -327,7 +327,7 @@ Private key, generated by `./xray x25519`.
==Required==
Public key, generated by `./xray x25519`.
Public key, generated by `sing-box generate reality-keypair`.
#### short_id

View File

@@ -315,7 +315,7 @@ MAC 密钥。
==必填==
私钥,由 `./xray x25519` 生成。
私钥,由 `sing-box generate reality-keypair` 生成。
#### public_key
@@ -323,7 +323,7 @@ MAC 密钥。
==必填==
公钥,由 `./xray x25519` 生成。
公钥,由 `sing-box generate reality-keypair` 生成。
#### short_id