Skip to content

Commit f635482

Browse files
authored
Testing v0.4.1 (#12)
2 parents 20e5d7d + f7c81c7 commit f635482

File tree

11 files changed

+378
-197
lines changed

11 files changed

+378
-197
lines changed

Diff for: .github/workflows/rust.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- uses: taiki-e/upload-rust-binary-action@v1
6565
with:
6666
bin: ocsp-server
67-
include: LICENSE,README.md
67+
include: LICENSE,README.md,config.toml,service.sh
6868
target: ${{ matrix.target }}
6969
archive: $bin-$tag-$target
7070
tar: unix

Diff for: .gitignore

-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,2 @@
11
/target
2-
*_files/
3-
test.resp
4-
src/main_*.rs
5-
config.toml
62
cache/
7-
src/test.py
8-
Rocket.toml

Diff for: Cargo.lock

+32-32
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "ocsp-server"
33
authors = ["DorianCoding <[email protected]>"]
44
description = "OCSP server, listening for requests to give responses."
5-
version = "0.4.0"
5+
version = "0.4.1"
66
edition = "2024"
77
license = "GPL-3.0-only"
88
rust-version = "1.85"

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ cachedays = 3 #Number of days a response is valid once created (only for valid c
3232
dbip = "127.0.0.1" #Optional. IP to connect to MySql database. If absent, use of unix socket.
3333
timeout = 5 #Optional timeout, default 5s
3434
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
3636
dbname = "certs" #Name to connect to MySql data
3737
dbpassword = "certdata" #Password to connect to cert data
3838
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
4444

4545
> [!CAUTION]
4646
> 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.
4748
> 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.
4849
> 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.
4950
> 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
5455

5556
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.
5657
### 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)).
5959

6060
*Feel free to share binaries for others architectures in a PR so they can be added. Please post only optimized binaries (release).*
6161
### 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`
6363
2) Type `cargo run` or `cargo run --release` and enjoy 👍
6464
## MySql table
6565
This script requires a table with this kind of structure :

0 commit comments

Comments
 (0)