草庐IT

openssl_encrypt

全部标签

ruby - OpenSSL、RVM、Brew、冲突错误

当我在终端中运行brewdoctor时:我收到以下错误:Warning:Somekeg-onlyformulaarelinkedintotheCellar.Youmaywishto`brewunlink`thesebrews:openssl如果我取消链接,然后输入rvmrequirements:我将收到以下错误。Checkingrequirementsforosx.dyld:Librarynotloaded:@@HOMEBREW_CELLAR@@/openssl/1.0.1f/lib/libssl.1.0.0.dylibReferencedfrom:/usr/local/opt/ope

ruby - 我如何确保 Ruby 使用不易受到 Heartbleed 攻击的 OpenSSL?

继Heartbleed错误之后,thispostonruby-lang.org描述了如何检查漏洞和升级。它包括这个建议:要验证您链接到Ruby的OpenSSL库版本,请使用以下命令:ruby-v-ropenssl-rfiddle-e'putsFiddle::Function.new(Fiddle.dlopen(nil)["SSLeay_version"],[Fiddle::TYPE_INT],Fiddle::TYPE_VOIDP).call(0)'要验证当前随Ruby安装的OpenSSL版本,请使用以下命令:ruby-ropenssl-e'putsOpenSSL::OPENSSL_VE

ruby - 在 Ruby 上获取 OpenSSL::X509::CertificateError 嵌套 asn1 错误

我有来自Apple的.p12文件,并尝试使用以下命令将其转换为.pem文件:opensslpkcs12-incert.p12-outapple_push_notification_development.pem-nodes-clcerts尝试创建新的OpenSSL::X509::Certificate对象时OpenSSL::X509::Certificate.new(File.read('apple_push_notification_development.pem'))我收到以下错误:OpenSSL::X509::CertificateError:nestedasn1errorfro

ruby-on-rails - 如何使用 OpenSSL::Cipher 加密 UTF-8 字符串中的数据?

在Rails3.0(Ruby1.9.2)应用程序中,我正在尝试使用如下方式加密一些数据:cipher=OpenSSL::Cipher.new'aes-256-cbc'cipher.encryptcipher.key=cipher.random_keycipher.iv=cipher.random_ivencrypted=cipher.update'mostsecretdataintheworld'encrypted这将进入UTF-8数据库。我的问题是>encrypted.encoding=>#>encrypted.encode'utf-8'Encoding::UndefinedConv

ruby - 加载 RubyGems 插件时出错,openssl.bundle (LoadError)

我是ruby新手。当我键入与gem相关的任何内容时,将发生以下错误。为什么会导致它以及如何解决问题?谢谢!ErrorloadingRubyGemsplugin"/Users/chiang/.rvm/gems/ruby-2.0.0-p247@global/gems/rubygems-bundler-1.2.2/lib/rubygems_plugin.rb":dlopen(/Users/chiang/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/2.0.0/x86_64-darwin12.3.0/openssl.bundle,9):Librarynotloade

ruby - 无法在 ruby​​ 中要求 openssl

我在我的虚拟机ubuntu12.04lts中安装了openssl。当我运行gem命令时出现错误。Error:whileexecutinggem(Gem::Exception)Unabletorequireopenssl.installopenSSLandrebuiltruby(preferred)orusenonHTTPssources而且我还在irb模式下测试了requireopenssl。它给出了错误。Loaderror:cannotloadsuchfile--opensslfrom/usr/local/lib/ruby/site_ruby/2.1.0/rubygems/core_

ruby-on-rails - OpenSSL::SSL::SSLError: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A

下面的代码会产生以下错误:OpenSSL::SSL::SSLError:SSL_connectSYSCALLreturned=5errno=0state=SSLv3readserverhelloArequire'net/https'uri=URI.parse("https://.com")http=Net::HTTP.new(uri.host,uri.port)http.use_ssl=truehttp.ssl_version='SSLv3'http.get(uri.request_uri)知道为什么吗?我尝试了所有其他问题中提到的所有内容,仍然没有运气。Ruby1.9.3p484(2

ruby 和 "You must recompile Ruby with OpenSSL support or change the sources in your Gemfile"

我使用rvm将我的ruby​​升级到1.9.3-p392,还添加了2.0.0,每当我尝试使用这个版本时,当我运行我的bundle命令时,我都会收到这个错误。CouldnotloadOpenSSL.YoumustrecompileRubywithOpenSSLsupportorchangethesourcesinyourGemfilefrom'https'to'http'.InstructionsforcompilingwithOpenSSLusingRVMareavailableatrvm.io/packages/openssl.我已经按照几个不同的说明来解决这个问题。我尝试删除版本并

ruby-on-rails - ruby 2.0 rails gem 安装错误 "cannot load such file -- openssl"

我正在使用osx10.8.2安装了ruby2.0并且....尝试运行"sudogeminstallrails"时得到这个$sudogeminstallrailsERROR:Loadingcommand:install(LoadError)cannotloadsuchfile--opensslERROR:Whileexecutinggem...(NoMethodError)undefinedmethod`invoke_with_build_args'fornil:NilClass我之前使用ruby​​1.9.x和rails3.2.x工作正常 最佳答案

ruby - OpenSSL vs GPG 用于加密异地备份?

关闭。这个问题是opinion-based.它目前不接受答案。想要改进这个问题?更新问题,以便editingthispost可以用事实和引用来回答它.关闭3年前。Improvethisquestion考虑到在将存档推送到异地备份位置之前使用GPG和OpenSSL进行本地加密的选择,每种解决方案的优缺点是什么?背景:我目前管理一个基于Ubuntu14.04.1的服务器基础架构,所有当前补丁可用时都已应用。所有这些系统都是headless的,使用经过审查的预置和自动化工具自动构建,并通过KVM在统一的基于Intel的硬件上的虚拟机中运行。我们偏爱Ruby,但更偏爱“正确地做事”。由于这两个