-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.toml
20 lines (20 loc) · 1003 Bytes
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#Config file, all fields are compulsory
cachedays = 3
db_type = "mysql" # Can be "mysql" or "postgres" or "sqlite"
dbip = "127.0.0.1"
dbport = 3306 # Optional: Default 3306 for MySQL, 5432 for PostgreSQL
port = 9000
listen_ip = "0.0.0.0" # Optional: IP address to listen on (default: 127.0.0.1)
timeout = 10
dbuser = "ocsp"
dbpassword = "ocsp"
dbname = "certs"
cachefolder = "cache/"
itcert = "test_files/cert.pem"
itkey = "test_files/keyp8.pk8" # Supports PKCS#8, PEM PKCS#1 (RSA) formats
revocextended = false # Optional, if you want to enable EXTENDED_REVOCATION
caching = false # Optional, enable caching or enable nonce response.
create_table = true # Optional: Creates the table if it doesn't exist
table_name = "custom_certs" # Optional: Custom table name (default is list_certs for MySQL, ocsp_list_certs for PostgreSQL)
enable_api = true # Optional: Enable the certificate management API
api_keys = ["secure-api-key-1", "secure-api-key-2"] # Optional: List of valid API keys for authentication