Skip to content

Commit

Permalink
Update rcgen/examples/simple.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel McCarney <[email protected]>
  • Loading branch information
tbro and cpu authored Nov 13, 2023
1 parent 22165df commit 1bc0895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rcgen/examples/simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("{}", cert.serialize_private_key_pem());
std::fs::create_dir_all("certs/")?;
fs::write("certs/cert.pem", pem_serialized.as_bytes())?;
fs::write("certs/cert.der", &der_serialized)?;
fs::write("certs/cert.der", der_serialized)?;
fs::write(
"certs/key.pem",
&cert.serialize_private_key_pem().as_bytes(),
Expand Down

0 comments on commit 1bc0895

Please sign in to comment.