We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8b690 commit 4a549e7Copy full SHA for 4a549e7
backend/src/bin/load_balancer.rs
@@ -275,9 +275,23 @@ http {
275
})?;
276
277
let cert_file = &format!("{host}.crt.jbl");
278
- fs::write(cert_file, cert)?;
+ fs::write(
279
+ cert_file,
280
+ &format!(
281
+ "-----BEGIN TRUSTED CERTIFICATE-----
282
+{cert}
283
+-----END TRUSTED CERTIFICATE-----"
284
+ ),
285
+ )?;
286
let key_file = &format!("{host}.key.jbl");
- fs::write(key_file, key)?;
287
288
+ key_file,
289
290
+ "-----BEGIN PRIVATE KEY-----
291
+{key}
292
+-----END PRIVATE KEY-----"
293
294
295
296
log::info!(
297
"Wrote cert and key for server {host} in namespace {namespace} to files {cert_file} and {key_file}...",
0 commit comments