MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

AuthenticationException on GetBalance. #118

Closed ArtjomP closed 4 years ago

ArtjomP commented 4 years ago

Hello! The following code throws an AuthenticationException:

System.Net.Http.HttpRequestException : The SSL connection could not be established, see inner exception.
    ---- System.Security.Authentication.AuthenticationException : The remote certificate is invalid according to the validation procedure.
var network = Network.Main;
var client = new QBitNinjaClient(network);
var destination = BitcoinAddress
                .Create("1LEmYPgrpAbnY5rRWLgSUuF8R3qDXp48Nw", network);
var balance = await client
                .GetBalance(destination, true)
                .ConfigureAwait(false);

Could you help me?

Thank you in advance!

GnWorld commented 4 years ago

let client = new QBitNinjaClient("http://api.qbit.ninja/",network)
好像 SSL 证书到期了 ,我临时改成了这个。

ArtjomP commented 4 years ago

Thank you, @GnineWheel !

NicolasDorier commented 4 years ago

fixed the ssl problem