summaryrefslogtreecommitdiff
path: root/crates/env/src/workspace/vault.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2025-09-22 17:09:26 +0800
committer魏曹先生 <1992414357@qq.com>2025-09-22 17:09:26 +0800
commite1ffcff9f6b2a7e0b9122c6d6ec980a5f9e61e38 (patch)
tree2778a924d563dc49b78b935b9dfb12c5d41e2914 /crates/env/src/workspace/vault.rs
parent0c186a8d2642e9ff3880c2b01bf651f57284436b (diff)
Update vault.rs
Diffstat (limited to 'crates/env/src/workspace/vault.rs')
-rw-r--r--crates/env/src/workspace/vault.rs24
1 files changed, 22 insertions, 2 deletions
diff --git a/crates/env/src/workspace/vault.rs b/crates/env/src/workspace/vault.rs
index b725ec4..b7c5011 100644
--- a/crates/env/src/workspace/vault.rs
+++ b/crates/env/src/workspace/vault.rs
@@ -77,13 +77,33 @@ This directory contains the server configuration and data for `JustEnoughVCS`.
## User Authentication
To allow users to connect to this server, place their public keys in the `{}` directory.
-Each public key file should correspond to a registered user.
+Each public key file should be named `{{member_id}}.pem` (e.g., `juliet.pem`), and contain the user's public key in PEM format.
+
+**ECDSA:**
+```bash
+openssl genpkey -algorithm ed25519 -out private.pem
+openssl pkey -in private.pem -pubout -out public.pem
+```
+
+**RSA:**
+```bash
+openssl genpkey -algorithm RSA -out private.pem -pkeyopt rsa_keygen_bits:2048
+openssl pkey -in private.pem -pubout -out public.pem
+```
+
+**DSA:**
+```bash
+openssl genpkey -algorithm DSA -out private.pem -pkeyopt dsa_paramgen_bits:2048
+openssl pkey -in private.pem -pubout -out public.pem
+```
+
+Place only the `public.pem` file in the server's `./key/` directory, renamed to match the user's member ID.
## File Storage
All version-controlled files (Virtual File) are stored in the `{}` directory.
## License
-This software is distributed under the MIT License.
+This software is distributed under the MIT License. For complete license details, please see the main repository homepage.
## Support
Repository: `https://github.com/JustEnoughVCS/VersionControl`