mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 18:59:38 +02:00
Enable certificate creating on api users
This commit is contained in:
parent
0f3c8ba944
commit
4f290bc9fe
2 changed files with 4 additions and 3 deletions
|
@ -117,14 +117,15 @@ Add these lines:
|
||||||
Reload apache:
|
Reload apache:
|
||||||
```
|
```
|
||||||
sudo a2enmod headers
|
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_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_path: '/home/registry/registry/shared/ca/private/ca.key.pem'
|
||||||
ca_key_password: 'registryalpha'
|
ca_key_password: 'registryalpha'
|
||||||
|
webclient_ip: '54.154.91.240'
|
||||||
```
|
```
|
||||||
|
|
||||||
Configure webclient application.yml to match the CA settings:
|
Configure webclient application.yml to match the CA settings:
|
||||||
|
|
|
@ -9,7 +9,7 @@ class ApiUser < User
|
||||||
validates :username, :password, :registrar, presence: true
|
validates :username, :password, :registrar, presence: true
|
||||||
validates :username, uniqueness: 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
|
attr_accessor :registrar_typeahead
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue