- Jun 6, 2020
- 11,559
- 4,422
Hi All,
I have to connect to a webpage and send some json text. I got a cert file and I have a key file too. This webpage hasn't a login/password method, only the certificate.
The certificate is installed in windows and I can see, that it works. I can use a postman program what can use the same certification, so I think it is good.
I tried Erel's SSLContext - Kickstart example program with mentioned certification, but I can't connect to webpage. I got error message:
B4X:
In the next code there are a lot of trial and error lines, but no solution yet.
Of course I converted the certificate into pfx and jks too, written in example.
B4X:
I have to connect to a webpage and send some json text. I got a cert file and I have a key file too. This webpage hasn't a login/password method, only the certificate.
The certificate is installed in windows and I can see, that it works. I can use a postman program what can use the same certification, so I think it is good.
I tried Erel's SSLContext - Kickstart example program with mentioned certification, but I can't connect to webpage. I got error message:
B4X:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: None of the TrustManagers trust this certificate chain
In the next code there are a lot of trial and error lines, but no solution yet.
Of course I converted the certificate into pfx and jks too, written in example.
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید