Ubuntu Full Node Error: X509 Certificate Signed By Unknown Authority

Discussion in 'Full Nodes' started by sikocan, May 17, 2016.

Tags:
  1. 2017/12/15 - Decred v1.1.2 released! → Release Notes  → Downloads
  1. sikocan

    sikocan New Member

    May 17, 2016
    4
    0
    syd
    I've been trying to setup a Full node on Ubuntu 14.

    When running the command:
    ./dcrctl -u username -P password --wallet getnewaddress

    It says:
    Post https://localhost:9110: x509: certificate signed by unknown authority

    In another terminal window I have the following command running:
    ./dcrwallet --username username --password password --dcrdusername=username2 --dcrdpassword=password2

    In the monitor window it states the following in the log:
    2016/05/18 11:51:36 http: TLS handshake error from 127.0.0.1:47105: remote error: bad certificate

    To fix the issue I have attempted to try the following:
    sudo -i
    cp /home/user/.dcrd/rpc.cert /usr/share/ca-certificates/dcrd.crt
    echo dcrd.crt >> /etc/ca-certificates.conf
    update-ca-certificates
    exit

    But still did not help.

    Thank you in advance.
     
  2. sikocan

    sikocan New Member

    May 17, 2016
    4
    0
    syd
    I have also attempted the following but no lock:
    sudo -i
    cp /home/user/.dcrwallet/rpc.cert /usr/share/ca-certificates/dcrwallet.crt
    echo dcrwallet.crt >> /etc/ca-certificates.conf
    update-ca-certificates
    exit
     
  3. sikocan

    sikocan New Member

    May 17, 2016
    4
    0
    syd
    Even executing the command
    ./dcrctl -u password2 -P password2 --wallet walletpassphrase password 0

    produces the same error messages above.
     
  4. sikocan

    sikocan New Member

    May 17, 2016
    4
    0
    syd
    Finally fixed the issue:

    I needed to ttell dcrctl where the cert file was so I ran the following:
    ./dcrctl -u username -P password --wallet getnewaddress --rpccert=/home/user/.dcrd/rpc.cert

    :) hope it helps everyone else
     
  5. root

    root Member

    Feb 3, 2016
    381
    76
    I hit that issue before as well with dcrticketbuyer I think. The problem may be that the default values are displayed in help, but they are not used as such. I think @ceejep corrected it, may be other devs like @jy-p or @_ingsoc can help.
    The resolution is (as you said) to use the flag in command line as is printed with --help.
     
  6. minerparts-ben

    minerparts-ben New Member

    Mar 13, 2017
    5
    3
    Male
    Entrepreneur
    Austin, TX, USA
    I'm still running into this problem on Ubuntu.
    It looks like it's readying the right rpc.cert but it says:

    Post https://localhost:19110: x509: certificate signed by unknown authority​
     
  7. jcv

    jcv Full Member
    Developer

Share This Page