Skip to content

Commit

Permalink
add cert bin
Browse files Browse the repository at this point in the history
  • Loading branch information
grooviegermanikus committed Mar 20, 2024
1 parent 657f37a commit c3bd2bf
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions benchrunner-service/src/bin/cert.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
use std::path::PathBuf;

Check warning on line 1 in benchrunner-service/src/bin/cert.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/benchrunner-service/src/bin/cert.rs
use std::str::FromStr;
use native_tls::Identity;
use solana_lite_rpc_util::encoding::BinaryEncoding;
use anyhow::Context;

pub fn main() {
let client_pks_b64 = std::fs::read_to_string(PathBuf::from_str("client_pks_b64.txt").unwrap()).unwrap();

let client_pks = BinaryEncoding::Base64
.decode(client_pks_b64)
.context("client pks decode").unwrap();

Check warning on line 12 in benchrunner-service/src/bin/cert.rs

View workflow job for this annotation

GitHub Actions / lite-rpc full build

Diff in /home/runner/work/lite-rpc/lite-rpc/benchrunner-service/src/bin/cert.rs

let client_pks =

Check warning on line 14 in benchrunner-service/src/bin/cert.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

unused variable: `client_pks`

Check warning on line 14 in benchrunner-service/src/bin/cert.rs

View workflow job for this annotation

GitHub Actions / Test lite-rpc against running Validator

unused variable: `client_pks`
Identity::from_pkcs12(&client_pks, "p").unwrap();

}

0 comments on commit c3bd2bf

Please sign in to comment.