Skip to content

Commit

Permalink
fix: Fix typo in file path for certificate approval script
Browse files Browse the repository at this point in the history
- Corrected the destination path for the `approve-csr.sh` script in the Vagrantfile.
- Updated the file path to match the actual location of the script.
  • Loading branch information
Searge committed Apr 16, 2024
1 parent 5620a23 commit e2d1cfe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Vagrant.configure("2") do |config|
if i == 1
# Add cetificate verification scripts
node.vm.provision "file", source: "vm/utils/cert_verify.sh", destination: "$HOME/certs/cert_verify.sh"
node.vm.provision "file", source: "vm/utils/approve-csr.sh", destination: "$HOME/certs/approve_csr.sh"
node.vm.provision "file", source: "vm/utils/approve_csr.sh", destination: "$HOME/certs/approve_csr.sh"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion vm/utils/cert_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ check_cert_and_key()
CERT_ISSUER=$(sudo openssl x509 -in $cert -text | grep "Issuer: CN"| tr -d " ")
CERT_MD5=$(sudo openssl x509 -noout -modulus -in $cert | openssl md5| awk '{print $2}')
KEY_MD5=$(sudo openssl rsa -noout -modulus -in $key | openssl md5| awk '{print $2}')
if [ $CERT_SUBJECT == "${subject}" ] && [ $CERT_ISSUER == "${issuer}" ] && [ $CERT_MD5 == $KEY_MD5 ]
if [ "$CERT_SUBJECT" == "${subject}" ] && [ "$CERT_ISSUER" == "${issuer}" ] && [ "$CERT_MD5" == "$KEY_MD5" ]
then
printf "${SUCCESS}${name} cert and key are correct\n${NC}"
else
Expand Down

0 comments on commit e2d1cfe

Please sign in to comment.