Hi I am migrating to a new PC ans was wondering if there are any API problems I need to watch out for. Is it a case of simply copying all files across that reside on my old PC. Tried this but it seems to not allow me to login, requiring CERT_AUTH. Appreciate any advice
Moving to a new PC
Collapse
X
-
Tags: None
-
Thanks for the response, I do not have a API_NH_OpenSSL folder I have a folder with the four client-2048 files and I have copied those over but get the above mentioned problem
Comment
-
I don't think the folder name is important.
I have a folder named c:\API_NG_OpenSSL with 5 files:-
client-2048.crt
client-2048.csr
client-2048.key
client-2048.p12
client-2048.pem
and a line in my code as follows:-
X509Certificate2 x509certificate = new X509Certificate2("c:\\API_NG_OpenSSL\\client-2048.p12", "password");
I've copied these about different servers and never had any problems.
Comment
-
I have copied over the client-2048.crt pem csr and key files to the corresponding folder on new PC
Comment
-
-
It's the c# code I use in my program to login and access the client-2048.p12 file.Originally posted by SystematicBettingDotCom View PostHi LetsGo when you say 'in your code' which code are you referring to ?., thanks
const string postData = "username=??????&password=??????";
X509Certificate2 x509certificate = new X509Certificate2("c:\\API_NG_OpenSSL\\client-2048.p12", "??????");
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://identitysso-cert.betfair.com/api/certlogin");
request.UseDefaultCredentials = true;
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.Headers.Add("X-Application", AppKey_Api_ng);
request.ClientCertificates.Add(x509certificate);
request.Accept = "*/*";
request.Proxy = null;
Comment
-
I am working in Python and on my new machine a login attempt gives me
CERT_AUTH_REQUIRED
Even though I have copied over all client-2048 files
Comment


Comment