Mac OS X
Components Crossplatform Mac & Win Server (Not) Client Old Guides Examples
New in version: 6.4 6.5 7.0 7.1 7.2 7.3 7.4 7.5 8.0 8.1 Statistic
Whether to verify the peer.
|Component||Version||macOS||Windows||Server||FileMaker Cloud||FileMaker iOS SDK|
|Handle||The CURL session handle.||$curl|
|Value||Whether to verify peer.||1|
Returns "OK" on success.
DescriptionWhether to verify the peer.
Pass a number as parameter. By default, curl assumes a value of 1.
This option determines whether curl verifies the authenticity of the peer's certificate. A value of 1 means curl verifies; 0 (zero) means it doesn't.
When negotiating an SSL connection, the server sends a certificate indicating its identity. Curl verifies whether the certificate is authentic, i.e. that you can trust that the server is who the certificate says it is. This trust is based on a chain of digital signatures, rooted in certification authority (CA) certificates you supply. curl uses a default bundle of CA certificates (the path for that is determined at build time) and you can specify alternate certificates with the CURL.SetOptionCAINFO option or the CURL.SetOptionCAPATH option.
When CURL.SetOptionSSLVerifyPeer is nonzero, and the verification fails to prove that the certificate is authentic, the connection fails. When the option is zero, the peer certificate verification succeeds regardless.
Authenticating the certificate is not by itself very useful. You typically want to ensure that the server, as authentically identified by its certificate, is the server you mean to be talking to. Use CURL.SetOptionSSLVerifyHost to control that. The check that the host name in the certificate is valid for the host name you're connecting to is done independently of the CURL.SetOptionSSLVerifyPeer option.
Disable SSL Verification:
Enables verification and uses cacert.pem file for certificates:
- CURL/CURL Download Picture to file
- CURL/CURL Send Form
- CURL/Email/Batch Emailer
- CURL/Email/Build and send Email
- CURL/Email/Build and send HTML Email with inline graphic
- CURL/Email/IMAP Email Upload
- CURL/Email/old examples/CURL Download Email with IMAP
- CURL/WebServices/Twilio API Send SMS Json
- CURL/WebServices/Twitter oAuth
- Third Party/Google OAUTH 2 example
Feedback: Report problem or ask question.
MBS Xojo tutorial videos