I need to call a secure web service (https). using Java (or even any other prog.).
Do I need to take any additional steps rather than the usual steps to create a client for the HTTP web service?
EDIT: please, I also need an answer to this question: If not, how will my client decrypt the encrypted message sent from the web service?
thank
URL- Java api . , Java CA, ( ).
.
- -, ( / , ).
, . , Axis, : SSL- Java
( , .)
EDIT: " , , -?", SSL/TLS. HTTP-, HTTPS, SSL/TLS (JSSE Java) : , /. -, , , API SSL/TLS ( - ), , , , -.
, -, HTTPS, ( SSL/TLS , ). - , , . , , . ( , , HTTPS.)
, HTTP- " " HTTPS.
, - : HTTP- URL- http:// https://.
http://
https://
. Https - HTTP SSL/TLS. , SSL/TLS , , HTTP. .
. , . , HTTP HTTPS.
, , . java , . , , , , . .
https://services.adcom.uci.edu/wiki/display/public/How+To+-+Import+a+Certificate+into+a+Java+Keystore
java : http://www.exampledepot.com/egs/javax.net.ssl/TrustAll.html, .
If the client is a Windows.NET application, you can trust all SSL certificates with this code:
// Trust all SSL certificates System.Net.ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy();
He will complain that it is outdated and offers an alternative, but it really works.
Source: https://habr.com/ru/post/1772130/More articles:Bring PHPdoc to include CakePHP.ctp files - phpWhy is my Uninstall method not being called? - installerhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1772127/how-to-add-items-to-the-navigation-bar&usg=ALkJrhi1zpZ44WEbJmxk38muv9IPHSuaLgConvert string to date in jQuery and Internet Explorer? - jqueryIs SQL table alias ambiguity prohibited by standard or blocked by implementations? - sqlC # - convert byte [] to string in Windows 7 Phone - c #When developing something in OO - javajquery onclick click event - jqueryHow to extract email id from textarea field - jquerySorting procedure results in SQL Server 2008 - sqlAll Articles