Skip to content

Commit

Permalink
Fix root CA certificate path in step-keypair tools
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinz01 committed Nov 1, 2024
1 parent b5137f0 commit 668d296
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This is the changelog for RedPepper.

## [Unreleased]

### Fixed

- Fix root ca certificate path in step-keypair tools.

## [0.1.2]

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/tools/redpepper/tools/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def install_step_keypair_agent(
f.write(f'tls_cert_file: "{cert_file}"\n')
f.write(f'tls_key_file: "{key_file}"\n')
f.write("tls_key_password:\n")
f.write(f'tls_ca_file: "{steppath}/certs/root_ca.crt"\n')
f.write(f'tls_ca_file: "{steppath}/authorities/redpepper/certs/root_ca.crt"\n')
f.write(f"tls_check_hostname: {str(check_hostname).lower()}\n")

if install_renew_cron_job:
Expand Down Expand Up @@ -222,7 +222,7 @@ def install_step_keypair_manager(
f.write(f'tls_cert_file: "{cert_file}"\n')
f.write(f'tls_key_file: "{key_file}"\n')
f.write("tls_key_password:\n")
f.write(f'tls_ca_file: "{steppath}/certs/root_ca.crt"\n')
f.write(f'tls_ca_file: "{steppath}/authorities/redpepper/certs/root_ca.crt"\n')
f.write(f"tls_check_hostname: {str(check_hostname).lower()}\n")

if install_renew_cron_job:
Expand Down
4 changes: 3 additions & 1 deletion src/tools/redpepper/tools/step_ca_keypair.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def get_step_ca_root_fingerprint(steppath: str, stepbinary: str) -> str:
stepbinary,
"certificate",
"fingerprint",
os.path.join(steppath, "certs", "root_ca.crt"),
os.path.join(
steppath, "authorities", "redpepper", "certs", "root_ca.crt"
),
]
)
.decode()
Expand Down

0 comments on commit 668d296

Please sign in to comment.