Skip to content

Commit

Permalink
fix SSL certificate problem.
Browse files Browse the repository at this point in the history
'curl' returned the following error message (via https://gist.github.com/877384):
> curl: (60) SSL certificate problem, verify that the CA cert is OK
>
> More details here: http://curl.haxx.se/docs/sslcerts.html
>
> curl performs SSL certificate verification by default, using a "bundle"
>  of Certificate Authority (CA) public keys (CA certs). The default
>  bundle is named curl-ca-bundle.crt; you can specify an alternate file
>  using the --cacert option.
> If this HTTPS server uses a certificate signed by a CA represented in
>  the bundle, the certificate verification probably failed due to a
>  problem with the certificate (it might be expired, or the name might
>  not match the domain name in the URL).
> If you'd like to turn off curl's verification of the certificate, use
>  the -k (or --insecure) option.
  • Loading branch information
tyru committed Mar 19, 2011
1 parent ea669d5 commit 0bd9b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/gist.vim
@@ -1,7 +1,7 @@
"=============================================================================
" File: gist.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 09-Mar-2011.
" Last Change: 19-Mar-2011.
" Version: 4.8
" WebPage: http://github.com/mattn/gist-vim
" License: BSD
Expand Down Expand Up @@ -555,7 +555,7 @@ function! s:GistPost(user, token, content, private)
echon 'Posting it to gist... '
let quote = &shellxquote == '"' ? "'" : '"'
let url = 'https://gist.github.com/gists'
let res = system('curl -i -d @'.quote.file.quote.' '.url)
let res = system('curl -k -i -d @'.quote.file.quote.' '.url)
call delete(file)
let res = matchstr(split(res, '\(\r\?\n\|\r\n\?\)'), '^Location: ')
let res = substitute(res, '^[^:]\+: ', '', '')
Expand Down Expand Up @@ -615,7 +615,7 @@ function! s:GistPostBuffers(user, token, private)
echo "Posting it to gist... "
let quote = &shellxquote == '"' ? "'" : '"'
let url = 'https://gist.github.com/gists'
let res = system('curl -i -d @'.quote.file.quote.' '.url)
let res = system('curl -k -i -d @'.quote.file.quote.' '.url)
call delete(file)
let res = matchstr(split(res, '\(\r\?\n\|\r\n\?\)'), '^Location: ')
let res = substitute(res, '^.*: ', '', '')
Expand Down

0 comments on commit 0bd9b0b

Please sign in to comment.