Enable certificate creating on api users

This commit is contained in:
Martin Lensment 2015-02-19 17:48:30 +02:00
parent 0f3c8ba944
commit 4f290bc9fe
2 changed files with 4 additions and 3 deletions

View file

@ -117,14 +117,15 @@ Add these lines:
Reload apache:
```
sudo a2enmod headers
sudo /etc/init.d/apache2 reload
sudo /etc/init.d/apache2 restart
```
Configure registry application.yml to match the CA settings:
Configure registry and epp application.yml to match the CA settings:
```
ca_cert_path: '/home/registry/registry/shared/ca/certs/ca.cert.pem'
ca_key_path: '/home/registry/registry/shared/ca/private/ca.key.pem'
ca_key_password: 'registryalpha'
webclient_ip: '54.154.91.240'
```
Configure webclient application.yml to match the CA settings:

View file

@ -9,7 +9,7 @@ class ApiUser < User
validates :username, :password, :registrar, presence: true
validates :username, uniqueness: true
# before_save :create_crt, if: -> (au) { au.csr_changed? }
before_save :create_crt, if: -> (au) { au.csr_changed? }
attr_accessor :registrar_typeahead