mirror of
https://github.com/SagerNet/sing-box.git
synced 2026-05-31 12:49:22 +00:00
Add generate commands
This commit is contained in:
parent
dd0a07624e
commit
03ce555104
7 changed files with 156 additions and 14 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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 | 任意字符串 |
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue