mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 05:14:35 +00:00
Remove dependency on OpenSSL (#8768)
https://github.com/sigp/lighthouse/issues/8756 Only the Web3Signer actually needs OpenSSL in order to parse PKCS12 certificates. This updates the function to instead manually parse the cert (using the `p12-keystore` crate) and converts it to a `PEM` certificate (using the `pem` crate) which can be directly converted to a `reqwest::tls::Identity` as this can be done directly in `rustls`. Co-Authored-By: Mac L <mjladson@pm.me>
This commit is contained in:
@@ -137,11 +137,7 @@ mod tests {
|
||||
}
|
||||
|
||||
fn client_identity_path() -> PathBuf {
|
||||
if cfg!(target_os = "macos") {
|
||||
tls_dir().join("lighthouse").join("key_legacy.p12")
|
||||
} else {
|
||||
tls_dir().join("lighthouse").join("key.p12")
|
||||
}
|
||||
tls_dir().join("lighthouse").join("key.p12")
|
||||
}
|
||||
|
||||
fn client_identity_password() -> String {
|
||||
|
||||
Reference in New Issue
Block a user