Skip to content

hard-coded out-dated server provides stale cert #148

Description

@zancas
cargo run --release -- wallet -w a_wallet_dir init --name "an_account" -i ../dev-wallet/dev-key.txt -n test
    Finished `release` profile [optimized] target(s) in 0.19s
     Running `target/release/zcash-devtool wallet -w a_wallet_dir init --name an_account -i ../dev-wallet/dev-key.txt -n test`
2026-02-03T23:59:39.092022Z  WARN tor_rtcompat::impls::rustls: Creating a RustlsRuntime, but no CryptoProvider is installed. The application should call Cryp
2026-02-03T23:59:39.093084Z  INFO tor_memquota::mtracker: Memory quota tracking initialised max=8.00 GiB low_water=6.00 GiB
2026-02-03T23:59:39.094274Z  INFO arti_client::client: Using keystore from "a_wallet_dir/tor/arti-data/keystore"
2026-02-03T23:59:39.469903Z  INFO tor_dirmgr: Marked consensus usable.
2026-02-03T23:59:39.472937Z  INFO tor_dirmgr: Loaded a good directory from cache.
2026-02-03T23:59:39.472958Z  INFO zcash_devtool::remote: Connecting to lightwalletd.testnet.electriccoin.co:9067 over Tor
2026-02-03T23:59:39.527965Z  INFO tor_dirmgr: Marked consensus usable.
2026-02-03T23:59:39.531527Z  INFO tor_dirmgr: Directory is complete. attempt=1
2026-02-03T23:59:39.690245Z  WARN tor_chanmgr::transport::default: Connection to [scrubbed] failed error=Network is unreachable (os error 101)
2026-02-03T23:59:41.495019Z  INFO tor_guardmgr::guard: We have found that guard [scrubbed] is usable.
2026-02-03T23:59:41.855193Z  INFO tor_guardmgr::guard: We have found that guard [scrubbed] is usable.
2026-02-03T23:59:42.168233Z  INFO tor_circmgr: Flushed persistent state at exit.
Error: gRPC-over-Tor error: Tonic error: transport error: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)

Caused by:
    0: Tonic error: transport error: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)
    1: transport error
    2: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)
    3: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)

A subsequent run shows a slightly different error (I think, still due to the expired cert):

/home/nattyb/src/zcdts/zcash-devtool RC: 130 $
cargo run --release -- wallet -w a_wallet_dir init --name "an_account" -i ../dev-wallet/dev-key.txt -n test
    Finished `release` profile [optimized] target(s) in 0.19s
     Running `target/release/zcash-devtool wallet -w a_wallet_dir init --name an_account -i ../dev-wallet/dev-key.txt -n test`
2026-02-03T23:59:39.092022Z  WARN tor_rtcompat::impls::rustls: Creating a RustlsRuntime, but no CryptoProvider is installed. The application should call Cryp
2026-02-03T23:59:39.093084Z  INFO tor_memquota::mtracker: Memory quota tracking initialised max=8.00 GiB low_water=6.00 GiB
2026-02-03T23:59:39.094274Z  INFO arti_client::client: Using keystore from "a_wallet_dir/tor/arti-data/keystore"
2026-02-03T23:59:39.469903Z  INFO tor_dirmgr: Marked consensus usable.
2026-02-03T23:59:39.472937Z  INFO tor_dirmgr: Loaded a good directory from cache.
2026-02-03T23:59:39.472958Z  INFO zcash_devtool::remote: Connecting to lightwalletd.testnet.electriccoin.co:9067 over Tor
2026-02-03T23:59:39.527965Z  INFO tor_dirmgr: Marked consensus usable.
2026-02-03T23:59:39.531527Z  INFO tor_dirmgr: Directory is complete. attempt=1
2026-02-03T23:59:39.690245Z  WARN tor_chanmgr::transport::default: Connection to [scrubbed] failed error=Network is unreachable (os error 101)
2026-02-03T23:59:41.495019Z  INFO tor_guardmgr::guard: We have found that guard [scrubbed] is usable.
2026-02-03T23:59:41.855193Z  INFO tor_guardmgr::guard: We have found that guard [scrubbed] is usable.
2026-02-03T23:59:42.168233Z  INFO tor_circmgr: Flushed persistent state at exit.
Error: gRPC-over-Tor error: Tonic error: transport error: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)

Caused by:
    0: Tonic error: transport error: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)
    1: transport error
    2: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)
    3: invalid peer certificate: certificate expired: verification time 1770163182 (UNIX), but certificate is not valid after 1767841836 (2321346 seconds ago)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions