-
-
Notifications
You must be signed in to change notification settings - Fork 106
ACME server #799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACME server #799
Conversation
chown -R step:step /opt/step-ca | ||
chmod -R og-rwx /opt/step-ca | ||
|
||
cat << EOF | sed -i '/"name": "acme"/ r /dev/stdin' /opt/step-ca/config/ca.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesnt seem right
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does work, but not very readable. I searched the internet to do it in a better way, but found solutions with hardcoded linenumbers (ed), or shell scripts reading every line, or awk scripts do stuff. Because the (cat <<EOF) is an embedded file, there are not many options.
Finding the linenumber, then head,cat and tail, and rename the file back to the original name, is neither a good readable solution.
I am open for good ideas.
install/stepca-install.sh
Outdated
{ | ||
echo "${YW}The public key of the root CA can be found at ${GN}/opt/step-ca/certs/root_ca.crt${CL}" | ||
echo "${YW}or at ${BGN}https://$pki_dns/roots.pem${CL}" | ||
echo "${YW}Fingerprint of CA ${GN}"`step certificate fingerprint /opt/step-ca/certs/root_ca.crt`"${CL}" | ||
# step certificate inspect /opt/step-ca/certs/root_ca.crt --short | ||
# cat /opt/step-ca/certs/root_ca.crt | ||
echo -e "${CL}" | ||
echo "${YW}The ACME directory server URL is ${BGN}https://$pki_dns/acme/acme/directory${CL}" | ||
echo "${YW}Documentation on how to connect an ACME client to this server can be found at${CL}" | ||
echo "${BGN}https://smallstep.com/docs/tutorials/acme-protocol-acme-clients/${CL}" | ||
echo "${YW}An ACME-client test script (${GN}~/test-stepca.sh${YW}) can be found to test this setup.${CL}" | ||
echo "${CL}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will hardcode colors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lot's to fix
echo "${BGN}https://smallstep.com/docs/tutorials/acme-protocol-acme-clients/${CL}" | ||
echo "${YW}An ACME-client test script (${GN}~/test-stepca.sh${YW}) can be found to test this setup.${CL}" | ||
echo "${CL}" | ||
} >$temp_file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are hardcoded colour codes not wanted ? What is a better way to do this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use them from core.func
π New scripts must first be submitted to ProxmoxVED for testing.
PRs for new scripts that skip this process will be closed.
βοΈ Description
π Related PR / Issue
Link: #
β Prerequisites (X in brackets)
π οΈ Type of Change (X in brackets)
README
,AppName.md
,CONTRIBUTING.md
, or other docs.π Code & Security Review (X in brackets)
Code_Audit.md
&CONTRIBUTING.md
guidelinesAppName.sh
,AppName-install.sh
,AppName.json
)π Additional Information (optional)