diff --git a/Cargo.lock b/Cargo.lock index 8b04243d4..90716bf6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,7 +303,7 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "enclave_build" -version = "0.1.0" +version = "0.2.0" dependencies = [ "aws-nitro-enclaves-image-format", "base64", diff --git a/enclave_build/Cargo.toml b/enclave_build/Cargo.toml index ff2ef6927..a8548cb98 100644 --- a/enclave_build/Cargo.toml +++ b/enclave_build/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "enclave_build" -version = "0.1.0" +version = "0.2.0" authors = ["The AWS Nitro Enclaves Team "] edition = "2018" rust-version = "1.58" diff --git a/enclave_build/src/main.rs b/enclave_build/src/main.rs index 52af2265d..ba69d40c2 100644 --- a/enclave_build/src/main.rs +++ b/enclave_build/src/main.rs @@ -131,11 +131,9 @@ fn main() { let linuxkit_path = matches.value_of("linuxkit_path").unwrap(); let output = matches.value_of("output").unwrap(); let signing_certificate = matches - .value_of("signing_certificate") - .map(|val| val.to_string()); - let private_key = matches - .value_of("private_certificate") + .value_of("signing-certificate") .map(|val| val.to_string()); + let private_key = matches.value_of("private-key").map(|val| val.to_string()); let img_name = matches.value_of("image_name").map(|val| val.to_string()); let img_version = matches.value_of("image_version").map(|val| val.to_string()); let metadata = matches.value_of("metadata").map(|val| val.to_string()); @@ -144,6 +142,7 @@ fn main() { .read(true) .write(true) .create(true) + .truncate(true) .open(output) .expect("Failed to create output file");