Does a higher call setup for secure web services (HTTPS) be required?

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

+3
source share
5 answers

URL- Java api . , Java CA, ( ).

.

.

+4

- -, ( / , ).

, . , Axis, : SSL- Java

( , .)

EDIT: " , , -?", SSL/TLS. HTTP-, HTTPS, SSL/TLS (JSSE Java) : , /. -, , , API SSL/TLS ( - ), , , , -.

, -, HTTPS, ( SSL/TLS , ). - , , . , , . ( , , HTTPS.)

+2

, HTTP- " " HTTPS.

, - : HTTP- URL- http:// https://.

+1

. Https - HTTP SSL/TLS. , SSL/TLS , , HTTP. .

. , . , HTTP HTTPS.

+1

, , . 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.

0
source

Source: https://habr.com/ru/post/1772130/


All Articles