K
K
kidar22016-04-15 12:00:33
Java
kidar2, 2016-04-15 12:00:33

How to request a url from https with an invalid certificate?

How many ways did not try
www.sql.ru/forum/828930/https-zapros-s-nevalidnym-...
stackoverflow.com/questions/12060250/ignore-ssl-ce...
stackoverflow.com/questions/21257455/whats -an-easy...
...
, swears all the time:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
and other weird words... I
use HttpPost and HttpClient
Maybe someone has a ready-made working method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alexandrov, 2016-04-15
@jamakasi666

It is necessary to import this invalid certificate into the JVM.
www.stackoverflow.com/a/12146838/6193104

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question