You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ cachedays = 3 #Number of days a response is valid once created (only for valid c
32
32
dbip = "127.0.0.1"#Optional. IP to connect to MySql database. If absent, use of unix socket.
33
33
timeout = 5#Optional timeout, default 5s
34
34
dbuser = "cert"#Username to connect to MySql database
35
-
port = 9000#Port to listen to, from 1 to 65535. Cannot use a port already used by another service (privileged ports allowed if used as root or as a service)
35
+
port = 9000#Port to listen to, from 1 to 65535. Cannot use a port already used by another service (privileged ports allowed if used as root or as a service). By default 9000
36
36
dbname = "certs"#Name to connect to MySql data
37
37
dbpassword = "certdata"#Password to connect to cert data
38
38
cachefolder = "cache/"#Folder to cache data (relative or absolute, will be created if not present)
@@ -44,6 +44,7 @@ itkey = "/var/private_files/it_privkey.pem" #Path to intermediate private key, k
44
44
45
45
> [!CAUTION]
46
46
> Config.toml should be read-only for the script and inaccessible for others because it contains dbpassword.
47
+
> Test files are TEST FILES and SHOULD NOT BE USED in any way for production.
47
48
> Intermediate/Signer certificate key should be held secret, must be read-only for the script and inaccessible to anyone else. The intermediate/Signer certificate should be world-readonly, including to the script.
48
49
> As a service, the script will use a brand-new user called pycert. This ensures system integrity and protection. All the filesystem is locked by systemd except the cache folder.
49
50
> The responder will reply to any certificate that are present in the database, *whatever they are currently expired or not*.
@@ -54,12 +55,11 @@ itkey = "/var/private_files/it_privkey.pem" #Path to intermediate private key, k
54
55
55
56
Create your config file in the main directory and call `service.sh` as root. The service then will be started on bootup and will listen to connections.
56
57
### Binaries
57
-
1) Clone the repo `git clone https://github.com/DorianCoding/OCSP_MySql.git`
58
-
2) Extract binaries for your architecture and execute it in the background.
58
+
1) Get binaries for your architecture and execute it in the background (check [releases](https://github.com/DorianCoding/OCSP-server/releases/tag/v0.4.0)).
59
59
60
60
*Feel free to share binaries for others architectures in a PR so they can be added. Please post only optimized binaries (release).*
61
61
### Compile from source
62
-
1) Clone the repo `git clone https://github.com/DorianCoding/OCSP_MySql.git`
62
+
1) Clone the repo `git clone https://github.com/DorianCoding/OCSP-server.git`
63
63
2) Type `cargo run` or `cargo run --release` and enjoy 👍
64
64
## MySql table
65
65
This script requires a table with this kind of structure :
0 commit comments