-
- Downloads
There was an error fetching the commit references. Please try again later.
Add Let's Encrypt client
Part of adding Let's Encrypt certificates for pages domains Add acme-client gem Client is being initialized by private key stored in secrets.yml Let's Encrypt account is being created lazily. If it's already created, Acme::Client just gets account_kid by calling new_account method Make Let's Encrypt client an instance Wrap order and challenge classes
Showing
- Gemfile 2 additions, 0 deletionsGemfile
- Gemfile.lock 3 additions, 0 deletionsGemfile.lock
- app/controllers/admin/application_settings_controller.rb 7 additions, 0 deletionsapp/controllers/admin/application_settings_controller.rb
- app/views/admin/application_settings/_pages.html.haml 2 additions, 3 deletionsapp/views/admin/application_settings/_pages.html.haml
- config/routes/admin.rb 1 addition, 0 deletionsconfig/routes/admin.rb
- lib/gitlab/lets_encrypt/challenge.rb 17 additions, 0 deletionslib/gitlab/lets_encrypt/challenge.rb
- lib/gitlab/lets_encrypt/client.rb 74 additions, 0 deletionslib/gitlab/lets_encrypt/client.rb
- lib/gitlab/lets_encrypt/order.rb 23 additions, 0 deletionslib/gitlab/lets_encrypt/order.rb
- locale/gitlab.pot 1 addition, 1 deletionlocale/gitlab.pot
- spec/lib/gitlab/lets_encrypt/challenge_spec.rb 29 additions, 0 deletionsspec/lib/gitlab/lets_encrypt/challenge_spec.rb
- spec/lib/gitlab/lets_encrypt/client_spec.rb 120 additions, 0 deletionsspec/lib/gitlab/lets_encrypt/client_spec.rb
- spec/lib/gitlab/lets_encrypt/order_spec.rb 39 additions, 0 deletionsspec/lib/gitlab/lets_encrypt/order_spec.rb
- spec/support/helpers/lets_encrypt_helpers.rb 19 additions, 0 deletionsspec/support/helpers/lets_encrypt_helpers.rb
Loading
| Loading
| @@ -60,6 +60,8 @@ gem 'u2f', '~> 0.2.1' |
# GitLab Pages | ||
gem 'validates_hostname', '~> 1.0.6' | ||
gem 'rubyzip', '~> 1.2.2', require: 'zip' | ||
# GitLab Pages letsencrypt support | ||
gem 'acme-client', '~> 2.0.2' | ||
# Browser detection | ||
gem 'browser', '~> 2.5' | ||
Loading
| Loading
|
lib/gitlab/lets_encrypt/challenge.rb
0 → 100644
lib/gitlab/lets_encrypt/client.rb
0 → 100644
lib/gitlab/lets_encrypt/order.rb
0 → 100644
spec/lib/gitlab/lets_encrypt/client_spec.rb
0 → 100644
spec/lib/gitlab/lets_encrypt/order_spec.rb
0 → 100644
spec/support/helpers/lets_encrypt_helpers.rb
0 → 100644
Please register or sign in to comment