Signing Besu transactions with Web3Signer and an external vault

Keep secp256k1 transaction signing keys out of applications and Besu by running Web3Signer against a vault you control, with TLS between signer and node and a clear network placement.

On this page

Signing Besu transactions with Web3Signer: what it does and when to use it

Web3Signer moves transaction signing out of the application and out of the Besu node. Many teams today keep an account's secp256k1 private key in an application config file, an environment variable or a keystore sitting on the node, and an auditor or security team then asks where that key lives, who can read it and how it is rotated. Web3Signer is the component that answers those questions. It holds the signing key, receives a request to sign an Eth1 payload, and returns the signature, so the calling application never needs the raw key material. Web3Signer can read keys from raw files, keystore files, HashiCorp Vault, Azure Key Vault and AWS KMS, and it can sign Eth1 payloads directly from a vault so the key never has to be exported to a file at all.

This covers account transaction keys only. It does not protect the node key that identifies a Besu peer or the validator key used to sign QBFT blocks. Those keys are handled by Besu's node key file and the HSM plugin, and they follow a different path that the sibling topics on node and account keys cover. Before you design anything, confirm which keys your network actually uses for each purpose, because teams often assume one key store protects everything. Also confirm that the Web3Signer release you deploy matches the version your Besu nodes and vault integration were tested against. The Web3Signer documentation lists version 26.7.0 as the stable release at the time of this writing, but you should check the current release notes before you pin a version.

The decision to make is whether a signer service is worth its operational cost for your transaction volume and key governance. Web3Signer adds a service to run, monitor, back up and patch, plus a network path that must be authenticated. Besu supports TLS for client communication, including between Web3Signer and Besu, with client certificates listed in a known clients file, so the certificate lifecycle becomes part of the design. Plan the signer's network placement early: keep it on a segment that only the Besu nodes and the approved vault can reach, and confirm with your vendor and your own environment how the vault's access policies will authorize the Web3Signer identity. Use the Web3Signer key storage documentation to check which vault options and signing modes your version supports.

What you need before connecting Besu to Web3Signer

Four components have to line up before Besu can request signatures from Web3Signer: the signer version, the Besu release, the vault holding the key, and the network and certificate path between them. Confirm each one in your own environment before you change any node configuration, since a mismatch usually shows up as a failed startup or a rejected signing request.

Web3Signer version to plan against

Web3Signer's documentation lists 26.7.0 as the stable release, so use that as the baseline for planning. Confirm the exact version you will deploy against the release notes and your own compatibility testing with Besu before go-live. Record the version in your change records, because the signer sits in the transaction path and its upgrades need the same planning as the node.

Web3Signer docs

Besu release and JDK 25

Besu requires JDK 25 to build and run, according to the 26.6.0 release notes. Pick a Besu release from the calendar-versioned line you can keep current, and confirm that the JDK in your base images matches it. Test the pairing on a non-production network first, because a runtime mismatch will stop the node before it can accept a signing configuration.

Vault with a secp256k1 signing key

Web3Signer signs secp256k1 Eth1 keys held in raw files, keystore files, HashiCorp Vault, Azure Key Vault or AWS KMS. Confirm that the vault you already operate supports this key type and that your team can create or import the account key there under your key ceremony rules. Decide who holds administrative rights to that key before Web3Signer is connected, because that choice defines who can authorize transactions.

Store signing keys docs

Network paths between the components

Plan the route from Besu to Web3Signer and from Web3Signer to the vault as separate hops, each with its own firewall rules. Confirm which subnet hosts the signer, whether it is reachable only from the validator or RPC nodes that need it, and whether the vault endpoint resolves from that subnet. Avoid placing the signer on a segment that application workloads can reach directly.

Certificates for mutual TLS

Besu supports TLS for client communication, including between Web3Signer and Besu, with client certificates listed in a known clients file. Issue certificates from the CA your security team already trusts, and confirm who renews them and how revocation is handled. Check that the certificate subject names match what each side expects, since a mismatch fails the handshake before any signature is requested.

Configure TLS docs

How to configure Web3Signer against a vault and Besu

This sequence takes a secp256k1 transaction signing key out of the application and Besu and into a vault, with Web3Signer making signing requests and Besu connecting to it over TLS. The result is a tested signed transaction on a non-production network.

  1. Confirm the vault and key type are supported

    Before any build work, confirm that the Web3Signer version you plan to run supports your key type (secp256k1 Eth1 keys) and your vault. Web3Signer's documentation lists HashiCorp Vault, Azure Key Vault and AWS KMS as supported sources for secp256k1 keys, alongside raw and keystore files, and it can sign Eth1 payloads directly from these vaults. Confirm the exact version against Web3Signer's own documentation, since the stable release it lists is the reference point for this build. Done means you have a written note naming the vault, the key type, the Web3Signer version and the vault authentication method you will use.

  2. Create or import the secp256k1 signing key in the vault

    A platform or security engineer creates the signing key inside the vault, or imports an existing key where your policy allows import. Keep the key non-exportable where the vault supports it, and record the key name, version and access policy in your change record. Confirm that the key is secp256k1 and that its derived Ethereum address matches the account you intend to use on the network. Done means the vault lists the key, the address matches the expected account, and no copy of the private key exists in a file or application config.

  3. Configure Web3Signer's key source and access

    Configure Web3Signer to read the key from the vault, using the vault type, address and key path from the Web3Signer key configuration. Grant Web3Signer a narrowly scoped vault identity that can sign with this key and nothing else, and keep vault credentials in your secret management process rather than in plain configuration files. Confirm the file permissions and the service account used by Web3Signer. Done means Web3Signer loads the key definition without errors and the vault audit log shows its authentication event.

  4. Start Web3Signer and confirm it serves the key

    Start Web3Signer in a non-production environment and check its startup log for the key source and loaded signing key. Query Web3Signer's list of available keys through its API and confirm the address returned matches the vault key from step two. Done means the key is listed by Web3Signer, the address matches, and startup completed without unhandled errors. Keep Web3Signer on an internal network interface that only Besu can reach.

  5. Enable TLS and the known clients file on Besu

    Configure Besu to use TLS for client communication with Web3Signer, following the Besu TLS documentation. Create the server and client certificates from your own certificate authority, and list the permitted client certificate in the known clients file so that Besu accepts only that client. Confirm the certificate chain and expiry dates before you rely on them. Done means Besu starts with the TLS settings applied and a connection attempt from a client without a listed certificate is rejected.

  6. Point Besu at the signer and restart

    Set Besu to use Web3Signer as the transaction signing source, with the signer URL, the account address and the TLS settings from the previous step. Restart the node in the test environment and review its logs for the signer connection. Done means Besu logs a successful connection to Web3Signer and reports the expected account as available for signing, with no private key for that account loaded from a Besu key file.

  7. Send and verify a signed transaction on a test network

    On a non-production network, submit a simple value transfer or contract call from the account whose key lives in the vault. Confirm the transaction is signed through Web3Signer, appears in a block, and that the sender address matches the vault key. Also check that Web3Signer and vault audit logs record the signing request. Done means the transaction is mined, the sender matches the vault-backed address, and the signing request is visible in both logs. Repeat the test with the signer unreachable to confirm that Besu fails closed rather than signing locally.

Where the signer sits in the network

Running Web3Signer on the same host as the Besu node is the simplest placement. The signer and the node share one operating system, one set of administrators and usually one failure domain. Traffic between them stays on the loopback interface, so there is no network path to protect, but that also means a compromise of the host exposes the signing key material and the node together. This placement suits a single development or test node, or a lab that exists to prove the integration before production design begins.

  • Trust boundary: the host itself is the boundary, so root or administrator access on the host reaches both components.
  • Network exposure: the signer listens only on localhost or a local socket, and the node's signing endpoint is not reachable from other hosts.
  • Administration: the same people usually manage both processes, which limits separation of duties.
  • Failure coupling: a host outage stops block production and signing at once.
  • Key location: vault credentials and any key files sit on the node host, so host hardening carries the full weight of key protection.

Before you rely on this placement, confirm with your security team whether a single host meets your separation-of-duties expectations and which host controls apply to it.",

How the signing request flows from Besu to the vault

A transaction signed through Web3Signer follows a short, fixed path: the client or node submits a signing request to Web3Signer over TLS, Web3Signer decides whether that caller may sign with the requested key, retrieves or uses the key from the configured store, and returns the signature. The node then broadcasts the signed transaction to the network. Each hop is a separate control, so the design question is not only whether the signature happens outside Besu, but which party can ask for a signature, under what conditions, and where the key material is ever readable. Web3Signer's store signing keys guide describes how secp256k1 keys in supported vaults are used for Eth1 payloads, and that is the reference to walk through with your team before you draw the diagram.

Three controls sit on this path and they do not replace each other. Besu's TLS settings, documented in the Besu TLS guide, govern the encrypted channel and which client certificates Besu accepts from the signer. Besu's JSON-RPC authentication governs who may call the node's own API. Web3Signer's access rules govern which callers may request which keys. A misconfiguration in one does not get fixed by a correct setting in another. Confirm in your own environment which identities each component authenticates, and write those mappings down as part of the design.

The node still needs a permitted account to submit transactions. Signing outside Besu does not remove the account from the chain's permissioning or from the sender checks that Besu applies to submitted transactions, so an account that Web3Signer can sign for must also be onboarded on the network. Plan for the case where a signature is valid but the transaction is rejected because the sender is not permitted, and for the reverse case where a permitted account has no signing route. Test both paths in a non-production network before go-live, and confirm with the Web3Signer and Besu versions you intend to run how each reports these errors.

Request flow and trust boundaries for Web3Signer with a vault

The flow starts when an application asks for a transaction to be signed. The application sends the request to the Besu node over its JSON-RPC API, and the node forwards signing work to Web3Signer over TLS. Web3Signer reads the secp256k1 key from the vault and returns only the signature, so the private key never enters Besu or the application. Check that the TLS link is mutually authenticated, that only the node can reach the signer, and that the signer sits in a segment the node team does not administer alone.

Signing requests cross from the node segment to an isolated signer segment over TLS.

Mapping Besu accounts to signing keys in the vault

This table shows the fields one row per Besu account should carry so that every signing key can be traced to an owner, a Web3Signer key reference, a TLS client identity and an environment. The rows are illustrative, so replace them with entries from your own key inventory before using the table in an access review.

FieldIllustrative entryWhat to confirm
Besu account address0x3f...a91 (example only)Address matches the account the Besu node submits from and the one in permissioning rules
Key typesecp256k1 (Eth1 signing key)Vault and Web3Signer key format supports secp256k1 for the chosen store
Vault key referencekv/besu/prod/treasury-settle-01 (example only)Reference path or ID in HashiCorp Vault, Azure Key Vault or AWS KMS, as applicable
Web3Signer key identifierPublic key or address used in the signing request (example only)Identifier is stable across Web3Signer restarts and matches the stored key
Besu TLS client identityCN=besu-node-03, certificate fingerprint recorded (example only)Certificate is listed in the known clients file Besu uses for TLS client checks
Owning teamSettlement platform team (example only)A named individual and a backup owner are recorded for every key
Permitted callersSettlement service account only (example only)Only the named application identities can request signatures for this key
EnvironmentProduction, separate from test and stagingKeys for each environment are stored and reviewed separately

Hardening the signer and the link to Besu

A signer moves transaction signing out of Besu and the application, but it also creates a new network path, a new identity and a new audit trail. The cards below cover the controls that keep that path narrow: the TLS link to Besu, who can reach the signer, what the signer's vault identity may do, and how signing is logged. They also mark the limit of the signer, which does not protect the node keys Besu holds on disk.

Mutual TLS between signer and Besu

Besu supports TLS for client communication, including between Web3Signer and Besu, and lists permitted client certificates in a known clients file. Confirm that both sides present certificates, that the known clients file lists only the signer's certificate, and that certificate rotation is part of the runbook. A signer connected over plain HTTP lets any host on the path inject signing requests.

Besu TLS docs

Restrict who reaches the signer port

Bind the signer to a dedicated interface and allow inbound connections only from the Besu hosts that need it, using host firewall rules or network policy. Keep application subnets and developer networks off that path. Ask the team to show the rule set during review, because a reachable signer port is a signing oracle for anyone who can reach it.

Least-privilege vault policies

Give the signer its own identity in the vault, such as a Vault policy or an Azure or AWS role, with permission only to sign with the specific secp256k1 keys it serves. Deny key creation, export and listing for that identity. Review the policy whenever a new account key is added, since a broad policy becomes the easiest route to a stolen account.

Audit logging of signing requests

Enable request logging on the signer and on the vault, and forward both to the log platform your security team already reviews. Each entry should identify the calling client, the key used and the outcome. Test that a denied request produces an alert, and confirm retention with your compliance owner before go-live.

Separate node keys from transaction keys

Validator and node keys identify peers and sign QBFT blocks, while account keys sign transactions. Keep them in different stores with different owners, so that compromise of one does not expose the other. The signer protects account keys only.

Node key files still need protection

Besu's local node private key file is not encrypted, so moving transaction signing to a signer does not protect the node key. Restrict file permissions, place the file on a controlled volume, or use a security module plugin such as the Besu HSM plugin where hardware-backed storage is required. Confirm the approach with the team before the signer is accepted.

Besu node keys docs

Why Besu cannot get signatures from Web3Signer

This table lists the failures that most often stop Besu from receiving signatures from Web3Signer, with the likely cause and the first check for each. Work down the rows in order, because TLS and connectivity faults hide the later problems. Confirm each setting against your own Besu and Web3Signer configuration and the current Web3Signer and Besu documentation before changing anything.

SymptomLikely causeFix to check first
TLS handshake fails between Besu and Web3SignerCertificate chain not trusted by one side, or the client certificate is missing from Besu's known clients fileConfirm the Web3Signer client certificate appears in Besu's known clients file and that both sides trust the issuing CA
Besu reports the signer is unreachableWrong host or port in the signing URL, a firewall or network policy blocking the path, or Web3Signer not listening on the expected interfaceTest connectivity from the Besu host to the Web3Signer port and confirm the URL in the Besu signer configuration matches the listening address
Signing request returns an authorization or key-not-found errorWeb3Signer's vault token or role lacks read or sign rights on the key path, or the key is stored under a different path or nameCheck the Web3Signer vault policy for the exact key path and the sign operation, then re-run a test signing request
Non-secp256k1 key is rejectedWeb3Signer signs Eth1 payloads with secp256k1 keys only, so the key type in the vault is wrong for Ethereum transactionsConfirm the key in the vault is secp256k1 and supported by Web3Signer for your vault type before importing it
Transaction signed but sender address does not matchThe public key in the vault maps to a different Ethereum address than the account Besu or the application expectsDerive the address from the vault public key and compare it with the sending account before funding or configuring the account
Transaction rejected by Besu after signingThe signing account is not allowed by account permissioning, or the node is not permitted to submit transactionsCheck the local account permissioning file on the node receiving the transaction and confirm the signed sender address is listed
Signer works in testing but fails after a restartVault token expired or a file-based key path changed, and Web3Signer no longer loads the key at startupCheck Web3Signer startup logs for key loading errors and confirm token lifetime and key paths in the service configuration

Questions buyers ask before connecting Web3Signer to Besu

Can our team set up Web3Signer with Besu on its own?

Yes, if your engineers already run Besu and have operated a vault and a TLS certificate authority, the work is within reach of an internal team. The harder part is not the first connection but the controls around it: which vault holds the keys, who can approve signing, how certificates rotate, and how the setup is tested before production. Most teams find the gap is in verification and evidence rather than in configuration. Ask a partner to scope only the parts you lack capacity for, and compare that scope with your own skills list before deciding.

What drives the effort of a Web3Signer setup?

Effort rises with the number of factors you have to combine. The main drivers are:

  • The vault choice: Web3Signer supports raw files, keystore files, HashiCorp Vault, Azure Key Vault and AWS KMS for secp256k1 keys, and each has its own access model and operational runbook.
  • The number of signing accounts and how they map to applications and roles.
  • Network segmentation between applications, Web3Signer and Besu.
  • TLS and certificate lifecycle, including client certificates in Besu's known clients file.
  • The test plan and how many environments you must prove before go-live.

Ask for a written scope that lists each driver and the assumed count for it.

What do we need to provide before the work starts?

You will need to provide access to the target vault and the people who administer it, approvals for any new network paths between Web3Signer, Besu and the applications that submit transactions, and named key owners who can decide which accounts are signed through the signer. You will also need a test Besu network where changes can be rehearsed. Confirm with your security and network teams how long their approvals take, because that lead time often sets the schedule more than the technical build does.

Does this work cover Besu validator keys?

No. This topic covers transaction signing keys for accounts that send transactions through Web3Signer. Besu node keys, which identify peers and sign QBFT blocks, follow a different path through the Besu HSM plugin or a protected key file. Besu's documentation states that the local node private key file is not encrypted, so node keys need their own protection plan. Ask for the node key approach to be scoped separately so that no one assumes a signer deployment protects validators.

How do we test changes before they reach production?

Test each change on a non-production Besu network with the same Web3Signer version, vault configuration and TLS settings that production will use. Check that a signed transaction is accepted, that a rejected request fails safely, that certificate rotation works without a restart you have not planned, and that audit records appear where your team will look for them. Keep a rollback record for Besu and Web3Signer versions, because Besu's 26.10.0 release notes state that an upgraded Bonsai database cannot be opened by older Besu versions. Ask any partner to show the test cases in the written scope.

What is the cost of this work, and what recurs afterward?

The one-time cost is the design, build, integration and testing of the signer and its vault connection. Recurring cost comes from running the signer: vault licensing or cloud fees if your chosen vault charges them, certificate renewal, Web3Signer and Besu upgrades, and staff time for access reviews. DeployOpen does not publish a price list, so ask for a quote that separates one-time and recurring items, names the vault and cloud services involved, and states what is excluded.

Which Web3Signer version should we plan around?

Web3Signer's documentation lists version 26.7.0 as the stable release, so use that as the starting point for a new plan and confirm it against the current documentation on the day you start. Pin the version, record it in your change records, and plan upgrades as a separate change with its own tests, since signer and client versions must remain compatible with each other.

How DeployOpen works on this

DeployOpen plans and builds the Web3Signer and external vault setup inside your own infrastructure, so transaction signing keys stay out of applications and Besu nodes. We scope the signer placement, key storage, TLS and access controls in writing before work starts, then test and document the result for your security and compliance reviewers.

How we scope

  • Agree in writing which Besu nodes, applications and accounts will request signatures through Web3Signer.
  • Confirm which vault holds the secp256k1 signing keys and who administers it.
  • Record where the signer runs, which network zones it crosses and which TLS client certificates Besu will trust.

How we build

  • Configure Web3Signer with the agreed key store, such as HashiCorp Vault, Azure Key Vault or AWS KMS, with the vault access policy limited to signing.
  • Set up TLS between Web3Signer and Besu, with client certificates listed in the known clients file.
  • Test failure paths, including vault unavailability and rejected client certificates, before the integration goes live.

How we hand over

  • Deliver the architecture diagram, configuration, key lifecycle procedure and access matrix for your records.
  • Document how signing requests are logged and how your monitoring team sees signer health.
  • Walk your operations and security staff through key rotation, certificate renewal and incident steps.

How we support

  • Engagements are fixed-scope, so changes to vaults, signer versions or network layout go through a written change.
  • Ongoing support, upgrades and continuous testing are available as a retainer.
  • Confirm with us and with the Web3Signer documentation which version you will run before you plan upgrades.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.