5a978a2836
Includes bitcoind's `share/rpcauth` to convert apg generated passwords into salted HMAC-SHA-256 hashed passwords.
10 lines
280 B
Nix
10 lines
280 B
Nix
{ pkgs }: with pkgs;
|
|
|
|
let
|
|
rpcauth = pkgs.writeScriptBin "rpcauth" (builtins.readFile ./rpcauth/rpcauth.py);
|
|
in
|
|
writeScript "generate-secrets" ''
|
|
export PATH=${lib.makeBinPath [ coreutils apg openssl gnugrep rpcauth python35 ]}
|
|
. ${./generate-secrets.sh} ${./openssl.cnf}
|
|
''
|