Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Scroll Ignore
scroll-viewporttrue
scroll-pdftrue
scroll-officetrue
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse
Panel
titleSommaire

Table of Contents
stylenone

Excerpt

Erreurs communes lors de l'envoi de la requête

Messages d'erreurs liés au protocole HTTPS

Le certificat SSL a été refusé
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory
curl: (60) SSL certificate problem: unable to get local issuer certificate
…
Info

Cela peut se produire si le certificat du serveur est auto-signé.

Pour contourner la validité de l'émetteur du certificat, il faut utiliser l'option --insecure ( option courte : -k ).

Code Block
languagetext
themeEmacs
curl --insecure -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory

Avec curl v7.29.0 :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (60) Peer's Certificate issuer is not recognized.

Avec curl v7.60 et supérieur :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (60) SSL certificate problem: unable to get local issuer certificate

Requête HTTP sur un serveur en HTTPS
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
http://broker-module-livedata:50100/api/v2/inventory
The client IP_SERVEUR:PORT_CLIENT sent a plain HTTP request, but this server only speaks HTTPS on this port.
Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

The client IP_SERVEUR:PORT_CLIENT sent a plain HTTP request, but this server only speaks HTTPS on this port.

Requête HTTPS sur un serveur en HTTP
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Avec curl v7.29.0 :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (35) SSL received a record that exceeded the maximum permissible length.

Avec curl v7.60 et supérieur :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Erreurs communes lors de l'envoi de la requête


Messages d'erreurs liés au protocole HTTPS


Le certificat SSL a été refusé
Section
Column
width50%
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory
curl: (60) SSL certificate problem: unable to get local issuer certificate
…
Info

Cela peut se produire si le certificat du serveur est auto-signé.

Pour contourner la validité de l'émetteur du certificat, il faut utiliser l'option --insecure ( option courte : -k ).

Code Block
languagetext
themeEmacs
curl --insecure -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory
Column
width50%

Avec curl v7.29.0 :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (60) Peer's Certificate issuer is not recognized.

Avec curl v7.60 et supérieur :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (60) SSL certificate problem: unable to get local issuer certificate

Requête HTTP sur un serveur en HTTPS
Section
Column
width50%
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
http://broker-module-livedata:50100/api/v2/inventory
The client IP_SERVEUR:PORT_CLIENT sent a plain HTTP request, 
but this server only speaks HTTPS on this port.
Column
width50%
Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

The client IP_SERVEUR:PORT_CLIENT sent a plain HTTP request, but this server only speaks HTTPS on this port.

Requête HTTPS sur un serveur en HTTP
Section
Column
width50%
Code Block
languagetext
themeEmacs
$ curl -s -S -H "x-api-token: XYZ" \
https://broker-module-livedata:50100/api/v2/inventory
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
Column
width50%

Avec curl v7.29.0 :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (35) SSL received a record that exceeded the maximum permissible length.

Avec curl v7.60 et supérieur :

Panel
borderColor#dfe1e5
borderWidth1
borderStylesolid

curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number