Skip to content
Discussion options

You must be logged in to vote

hi, i managed to sort this out.
now my step-ca instance is running with no mention of a password file in the process list:

Main PID: 1116 (start-step-ca.s)
Tasks: 7 (limit: 3509)
Memory: 55.3M
CPU: 2.468s
CGroup: /system.slice/step-ca.service
├─1116 /bin/bash /usr/local/bin/start-step-ca.sh
└─1121 /usr/bin/step-ca --password-file /dev/stdin /etc/step-ca/config/ca.json

this has been achieved via bash login script promting for a password to unlock the GPG keyring and caching it like this:

export GPG_TTY=$(tty)
sudo -u step gpgconf --launch gpg-agent

Prompt the user for the passphrase

read -s -p "Enter GPG passphrase: " PASSPHRASE

Use the passphrase to unlock the GPG keyring

echo "$PASSPHRAS…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by miso-simo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant