我想使用宝石rails-letsencrypt通过RoR应用程序动态生成SSL证书。
我正在按照说明进行操作,在“为我们加密API设置私钥”步骤中,出现了错误。
更改了gemfile并运行了安装迁移后,尝试为Let's Encrypt API设置私钥。但是,在回答了这样的问题之后:
我收到此错误:
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/acme-client-2.0.0/lib/acme/client.rb:31:in 'initialize': unknown keyword: endpoint (ArgumentError) from
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails-letsencrypt-0.5.4/lib/letsencrypt.rb:24:in 'new' from
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails-letsencrypt-0.5.4/lib/letsencrypt.rb:24:in 'client' from
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails-letsencrypt-0.5.4/lib/letsencrypt.rb:52:in 'register' from
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails-letsencrypt-0.5.4/lib/generators/lets_encrypt/register_generator.rb:49:in 'register_email' from
/home/computer/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/rails-letsencrypt-0.5.4/lib/generators/lets_encrypt/register_generator.rb:16:in 'register'
我不知道我忘记了什么。有人可以帮助我吗?
Using development env (localhost)
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux]
Rails 4.2.1
rails-letsencrypt 0.5.4
acme-client 2.0.0