summaryrefslogtreecommitdiff
path: root/src/check_curl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/check_curl.c')
-rw-r--r--src/check_curl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/check_curl.c b/src/check_curl.c
index c014359..bbb8d12 100644
--- a/src/check_curl.c
+++ b/src/check_curl.c
@@ -202,6 +202,12 @@ int main( int argc, char *argv[] ) {
curl_easy_setopt( curl, CURLOPT_SSL_VERIFYHOST, 0 );
}
+ /* --insecure: allow SSL connections totally insecurely (for self-signed certificates) */
+ if( args_info.insecure_given ) {
+ curl_easy_setopt( curl, CURLOPT_SSL_VERIFYPEER, 0 );
+ curl_easy_setopt( curl, CURLOPT_SSL_VERIFYHOST, 0 );
+ }
+
/* --cert: client certificate to present to server (SSL) */
if( args_info.cert_given ) {
curl_easy_setopt( curl, CURLOPT_SSLCERT, args_info.cert_arg );