Browse Source

add section about ssh certificates

python3
Edoardo Putti 8 years ago
parent
commit
cae006cd77
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      doc/source/lxc_guest.rst

+ 28
- 0
doc/source/lxc_guest.rst View File

@ -36,3 +36,31 @@ During the role execution there are multiple phases
- Update the container network configuration
- Install python and openssh-server
- Update of the user ssh certification authority public key
SSH Certificate
---------------
During the execution of this role the vm host key will be used to create a certificate signin request.
This requests will be "posted" to the service known as ca manager and ansible will then wait for a certificate from the same service.
This is accomplished using ssh as a mean of transport, the specific task for a signin requests is alwasys like this
.. code-block:: yaml
- name: generate host request
set_fact:
cert_request:
type: 'sign_request'
request:
keyType: 'ssh_host'
hostName: '{{ vm_name }}'
keyData: '{{ vm_public_key.text}}'
- name: start sign request
raw: "{{ cert_request | to_json }}"
delegate_to: ca_request
register: request_result
failed_when: "( request_result.stdout | from_json ).failed"
To sign this certificate an admin must log onto the ca manager machine with the user *sign* and follow the procedure to sign a request with an appropriate certification authority.

Loading…
Cancel
Save