-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config file including all options
- Loading branch information
1 parent
58d8b5f
commit b952f0e
Showing
2 changed files
with
81 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Set this option to true to enable the compatibility option for the C_SetAttributeValue() function. | ||
# This allows the applications using the Java Sun PKCS11 module (like EJBCA) to generate keys. | ||
# When using this, the names given to the keys will be ignored and the keys will have random names. | ||
# Under the hood it will store in memory the name given to the key when calling C_SetAttributeValue(). When a certificate is uploaded it will check if the name was previously passed to C_SetAttributeValue() and translate it to the real name on the NetHSM. | ||
enable_set_attribute_value: false | ||
|
||
# You can set the log file location here. | ||
# If no value is set the module will output to stderr. | ||
# If a value is set it will output to the file. | ||
log_file: /tmp/p11nethsm.log | ||
# Optional log level, acceptable values are Trace, Debug, Info, Warn and Error | ||
log_level: Debug | ||
|
||
# Each "slot" represents a NetHSM server | ||
slots: | ||
- label: LocalHSM # Name your NetHSM however you want | ||
description: Local HSM (docker) # Optional description | ||
|
||
# Users connecting to the NetHSM server | ||
operator: | ||
username: "operator" | ||
# If the password starts with `env:`, it will obtain the password from an environment variable: | ||
# password: "env:LOCALHSMPASS" | ||
password: "localpass" | ||
administrator: | ||
username: "admin" | ||
|
||
# List the NetHSM instances | ||
instances: | ||
- url: "https://keyfender:8443/api/v1" # URL to reach the server | ||
# By default, the certificate of the HSM will be validated using the system's root certificate authority. | ||
# When the NetHSM uses a self-signed certificate, it can be verified against an allowed list of sha256 fingerprint of the NetHSM's certificate: | ||
sha256_fingerprints: | ||
- "31:92:8E:A4:5E:16:5C:A7:33:44:E8:E9:8E:64:C4:AE:7B:2A:57:E5:77:43:49:F3:69:C9:8F:C4:2F:3A:3B:6E" | ||
# Alternatively certificate checks can be skipped entirely with danger_insecure_cert option. | ||
# This should be avoided if possible and certainly not used with a productive NetHSM. | ||
# danger_insecure_cert: true | ||
# Configure the network retry mechanism. If absent, no retries are attempted on a network error | ||
retries: | ||
# The number of retries after a network error | ||
count: 3 | ||
# The delay between retries, in integer seconds | ||
delay_seconds: 1 | ||
# Configurable timeout for network operations. If a network operation takes more than, `timeout_seconds`, consider it failed. If `retries` is configured, it will be retried. | ||
# Defaults to infinite | ||
timeout_seconds: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters