Skip to content

Commit

Permalink
Rename root to root_ca
Browse files Browse the repository at this point in the history
  • Loading branch information
BLYKIM committed Aug 22, 2024
1 parent d7c8453 commit cc0c5f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).
- Removed `cert`, `key`, `root` fields from config file.
- Changed `set_giganto_config` to receive toml-string with full configuration.
- Updated `giganto_config` to respond full configuration.
- Renamed `root` to `root_ca`.

## [0.20.0] - 2024-05-17

Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ async fn main() -> Result<()> {
let key_pem = fs::read(&args.key)
.with_context(|| format!("failed to read private key file: {}", args.key))?;
let key = to_private_key(&key_pem).context("cannot read private key")?;
let root_pem = fs::read(&args.root)
.with_context(|| format!("failed to read root certificate file: {}", args.root))?;
let root_pem = fs::read(&args.root_ca)
.with_context(|| format!("failed to read root certificate file: {}", args.root_ca))?;
let root_cert = to_root_cert(&root_pem)?;
let certs = Arc::new(Certs {
certs: cert.clone(),
Expand Down
4 changes: 2 additions & 2 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pub struct Args {
pub key: String,

/// Path to the root CA file
#[arg(long, value_name = "ROOT_PATH")]
pub root: String,
#[arg(long, value_name = "ROOT_CA_PATH")]
pub root_ca: String,

/// Enable the repair mode
#[arg(long)]
Expand Down

0 comments on commit cc0c5f1

Please sign in to comment.