도움이되지 않습니다 윈도우 문제에 대한 또 다른 OpenSSL이있다 :, 그것은 아주 짧은 VERIFY_NONE 내가 내 자신의 동영상을 업로드 좀 루비 스크립트를 만들려고 노력 그리고 여기에 전체 코드의하고
require 'openssl'
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE # warning: already initialized constant VERIFY_PEER \n 0
require 'youtube_it'
require 'rest-client'
# Authentication
auth_devkey = '...'
auth_user = '...'
auth_pass = '...'
# Getting auth token
response = RestClient.post "https://www.google.com/accounts/ClientLogin", {:Email => auth_user, :Passwd => auth_pass, :service => "youtube", :source => "..."}, :content_type => 'application/x-www-form-urlencoded'
auth_token = response[/(?<=auth=).*/i]
# so far so good
# creating a new youtube_it client
yt_client = YouTubeIt::Client.new(:username => auth_user, :password => auth_pass, :dev_key => auth_devkey)
# A-Okay
# Uploading video
vpath = "c:/downloads/videos/video.mov"
upload_response = yt_client.video_upload(File.open(vpath), :title => "test",:description => 'some description', :category => 'People',:keywords => %w[cool blah test], :list => 'denied')
# big error here
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:677:in `connect'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:677:in `connect'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:637:in `do_start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:626:in `start'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:1160:in `request'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb:17:in `request'
from C:/Ruby192/lib/ruby/1.9.1/net/http.rb:970:in `post'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/youtube_it-1.4.1/lib/youtube_it/request/video_upload.rb:525:in `auth_token'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/youtube_it-1.4.1/lib/youtube_it/request/video_upload.rb:463:in `authorization_hea
ders'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/youtube_it-1.4.1/lib/youtube_it/request/video_upload.rb:94:in `upload'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/youtube_it-1.4.1/lib/youtube_it/client.rb:99:in `video_upload'
from (irb):81
from C:/Ruby192/bin/irb:12:in `<main>'
나는 경우 확신 즉시 다른 정보를 제공 할 수 있으며 여기에 붙여 넣기가 어려울 수 있으며이를 해결하기 위해 필요합니다. 나는 적어도 4 시간 동안 인터넷 검색을하지 않고 가볍게 질문을하고 싶지 않지만 도움이되는 것을 찾을 수는 없다.
감사합니다 억!
지적 해 주셔서 감사합니다. –