server-config/roles/kickstart/tasks/firefoxcert.yml

29 lines
764 B
YAML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
# Creates a cert8.db file valid for clients, to be installed on client machines
# to recognize https proxy functionalities.
- name: Scarico ca.crt
get_url:
url: "http://localhost/proxy.crt"
dest: /tmp/ca.crt
- name: 'Utilizzo cert8.db precedentemente fornito (pulito da FF appena aperto)'
copy:
src: cert8.db
dest: /var/lib/nethserver/ibay/ks/cert8.db
owner: root
mode: 0644
sudo: yes
- name: Integro la CA nel db
shell: certutil -A -n "{{ ansible_local.domain.domainfull }}" -t "TCu,Cuw,Tuw" -i /tmp/ca.crt -d /var/lib/nethserver/ibay/ks
sudo: yes
- name: Pulizia
shell: rm -f {{ item }}
sudo: yes
with_items:
- /tmp/ca.crt
- /var/lib/nethserver/ibay/ks/key3.db
- /var/lib/nethserver/ibay/ks/secmod.db