Skip to content

Commit

Permalink
ca chain is a string not a list of them (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
madninja authored Feb 6, 2025
1 parent dce8be7 commit ee701ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion helium-lib/src/hotspot/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub struct CertResponse {
pub struct CertInfo {
pub radsec_private_key: String,
pub radsec_certificate: String,
pub radsec_ca_chain: Vec<String>,
pub radsec_ca_chain: String,
pub radsec_cert_expire: DateTime<Utc>,
}

Expand Down
6 changes: 1 addition & 5 deletions helium-wallet/src/cmd/hotspots/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,7 @@ impl MobileCert {

write_file(&pk_path, &cert_info.cert.radsec_private_key, !self.force)?;
write_file(&cert_path, &cert_info.cert.radsec_certificate, !self.force)?;
write_file(
&ca_path,
&cert_info.cert.radsec_ca_chain.join("\n"),
!self.force,
)?;
write_file(&ca_path, &cert_info.cert.radsec_ca_chain, !self.force)?;

let result = MobileCertInfo {
expiration: cert_info.cert.radsec_cert_expire,
Expand Down

0 comments on commit ee701ca

Please sign in to comment.