13 votes

error : incorrect rpcuser or rpcpassword (authorization failed)

I was having the same problem and just managed to fix it now. Since the file bitcoin.conf does not exist inside ~/.bitcoin, Just create one. Here's what did: vi ~/.bitcoin/bitcoin.conf Enter ...
  • 231
5 votes
Accepted

Does rpcpassword need to be non-obvious in bitcoind?

By default the RPC interface is only exposed to localhost (127.0.0.1 and ::1), not to the world. In that setting, you need an RPC password only to protect against untrusted local users on your system (...
4 votes
Accepted

How to set up Lightning Network conf file. RPC user / password? and zmqpubraw?

So in Bitcoind you can define authentication via an rpc interface (remote procedure call). In the config file of Bitcoind which is usually located in ~/.bitcoin/bitcoin.conf you can set the values for ...
4 votes
Accepted

How in the Bitcoin world one prove that a public key is authentic?

You are not sending with public key. You broadcast the transaction message that is signed with private key that only the owner of the coins has. (you can consider signing to be analogous to ...
  • 1,202
3 votes
Accepted

What should you set as rpcpassword and rpcusername in BitCoin?

I suggest you don't use rpcuser and password if you don't need to. If you don't set them, Bitcoin Core will use a cookie in your .bitcoin directory as a mean to identify you. Besides rpcuser and ...
  • 551
3 votes

Does rpcpassword need to be non-obvious in bitcoind?

The RPC interface is not exposed to anything except localhost by default. So other people on your network, nor people on the internet, can access it unless you have explicitly enabled outside access ...
  • 63.8k
3 votes
Accepted

How to add a second user with SSH access to my Ubuntu PC running Bitcoin Core?

You don't need to grant someone access to the entire machine to be able to use bitcoin-cli. You can provision credentials using the rpcauth parameter in bitcoin.conf (it may be defined multiple times ...
  • 16.6k
3 votes
Accepted

Wladimir's new GPG key

I chatted to Wladimir about this. He hasn't switched to a new key, he's just using a separate key to sign binary releases. Additionally, he has signed the new key with the old key, so there's an ...
3 votes
Accepted

API Authentication via Python

A closer look at their API page, you will find LakeBTC has provided a simple code for Python: https://github.com/LakeBTC/lakebtc_python And others Sample Code you can find here: https://www.lakebtc....
2 votes

API Authentication via Python

I think I figured out your problem. (Or, one of them, at least.) Step 6: POST params data in JSON format to this url: https://www.LakeBTC.com/api_v1 You're not POSTing the the right information; ...
  • 28.9k
2 votes
Accepted

Authentication and key distribution in bitcoin

There is no "authentication" in bitcoin protocol. It is not encrypted also. You can use wireshark to investigate handshake packets
  • 6,684
2 votes
Accepted

bitcoin-cli failed with error: incorrect rpcuser or rpcpassword

re-compiled on an Ubuntu system, fresh from github.com: $ uname -a Linux ubuntu-ae 4.10.0-19-generic $ bitcoind -version Bitcoin Core Daemon version v0.15.99.0-g96ac26e5662 $ bitcoind -testnet -...
  • 5,046
2 votes
Accepted

Disabling GreenAddress 2FA ∵ Google Authenticator doesn't generate the correct OTPs for it

The only reason I can think of that would result in the above with a valid OTP seed is invalid OTP settings (but default should work for Google Auth) OR incorrect time on the device OR invalid time (...
2 votes
Accepted

bitcoind: incorrect rpcuser or rpcpassword (authorization failed)

Despite I run both bitcoind and bitcoin-cli as the same user, it for some reason fails to find my personal config file located in standard location: $HOME/.bitcoin/bitcoin.conf So I have set up an ...
2 votes

Why bother checking both public key and signature in P2PKH transactions?

There is spending condition and ownership condition. The spending condition is set by the previous sender of the funds in the pubkey script: “proof that you can create the hash which belongs to this ...
  • 5,046
2 votes
Accepted

Why bother checking both public key and signature in P2PKH transactions?

1) The addresses would obsolete after one use. 2) If someone does a Sybil attack, s/he can prevent the transactions from relaying (which may also happen now), but also s/he can make a fake ...
  • 9,929
2 votes

How to connect LND to bitcoind RPC with authentication cookie stored in a custom folder?

It is supported according to the LND installation guide NOTE: The auth parameters rpcuser and rpcpass parameters can typically be determined by lnd for a bitcoind instance running under the same user,...
  • 11.5k
2 votes

Bitcoind to use static RPC authentication cookie from file?

You can't. The cookie file is for bitcoind to write it's automatically generated credentials to for other software to read. If you want to set the RPC credentials, you need to do so within the bitcoin....
  • 63.8k
1 vote
Accepted

Is it possible to configure c-lightning cookie based auth to bitcoind as opposed to rpcuser/rpcpassword?

Is it possible to configure c-lightning cookie based authentication to bitcoind as opposed to rpcuser/rpcpassword? Yes it works with .cookie now. It is automatic, it is the positive side effect of c-...
1 vote

Beneficial proofs of work

Your first point is indeed right: The BTC puzzle is only useful for ensuring the security of the blockchain. Onto your next question: One of the first attempts to define a "useful" PoW was Primecoin, ...
  • 137
1 vote

How in the Bitcoin world one prove that a public key is authentic?

Then, why I cannot broadcast to the community that the public key "hjf734hkjf" is sending 100 bitcoins to me? That is not how Bitcoin works. First of all, you do not send from a public key or an ...
  • 63.8k
1 vote
Accepted

Do you need to change 'rpcuser' and 'rpcpassword' for each bitcoind node you run?

The rpc user/pass is only needed if you're planning to access the node via RPC. If you're running Armory on top of it, for example, that requires RPC and hence you would need it (Armory auto-creates ...
  • 7,669
1 vote

Wladimir's new GPG key

Maybe he is worried his old key was compromised somehow? If that is the case I would be careful about trusting anything signed with the old GPG key after the soonest date it could have been ...
  • 286
1 vote

Which exchanges support U2F authentication?

As you have correctly noticed none of the Bitcoin exchanges have implemented the FIDO standards there is not a large demand for this feature from what I gather. If the standard were to gain mass ...
  • 2,640
1 vote
Accepted

How do I reset my TFA token in Coinbase?

You should have the option to remove / change the 2-factor Authentication under Settings >> Personal Details, though this may have changed. My guess is you'll probably need to contact Coinbase support ...
  • 26
1 vote

What is rpcuser?

No you can define the rpcuser and rpcpassword in the bitcoin.conf file itself. Usually it is commented, you can uncomment the line rpcuser and rpcpassword and input your username and password which ...
  • 11

Only top scored, non community-wiki answers of a minimum length are eligible