mirror of
https://github.com/internetee/registry.git
synced 2025-07-04 18:23:35 +02:00
Added api user p12 readme
This commit is contained in:
parent
980f30b8de
commit
ac6361df05
1 changed files with 23 additions and 0 deletions
|
@ -161,6 +161,29 @@ Reload apache:
|
||||||
sudo /etc/init.d/apache2 restart
|
sudo /etc/init.d/apache2 restart
|
||||||
|
|
||||||
|
|
||||||
|
### ApiUser browser setup
|
||||||
|
|
||||||
|
In short:
|
||||||
|
|
||||||
|
* Upload CSR file to api user at admin page /admin/api_users
|
||||||
|
* Sign it
|
||||||
|
* Generate p12 file and install into user browser
|
||||||
|
|
||||||
|
#### Creating CSR file
|
||||||
|
|
||||||
|
openssl genrsa -out private/api-user.key.pem 4096
|
||||||
|
chmod 400 private/api-user.key.pem
|
||||||
|
openssl req -sha256 -new -days 3653 -key private/api-user.key.pem -out csrs/api-user.csr.pem
|
||||||
|
|
||||||
|
Upload api-user.csr.pem file to api user at admin interface.
|
||||||
|
Sign it
|
||||||
|
Download CRT file and create p12 file.
|
||||||
|
|
||||||
|
openssl pkcs12 -export -inkey private/api-user.key.pem -in certs/api-user.crt.pem -out pkcs/api_user.p12
|
||||||
|
|
||||||
|
Add api_user.p12 to your browser.
|
||||||
|
|
||||||
|
|
||||||
Development env
|
Development env
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue