Export wallet and private key from Validator?

Can anyone tell me how to export the wallet and the private key from a local Validator?

When starting a solana validator you pass a private key file with the --identity commandline flag. I think that is the private key you are looking for.

But I’m not exactly sure what wallet you are talking about. Are you talking about the wallet that can withdraw earned funds from the validator?