Skip to content

Commit

Permalink
use server_name for CN
Browse files Browse the repository at this point in the history
  • Loading branch information
emillon committed Jan 14, 2015
1 parent cb0244d commit 8abafb3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion devops/group_vars/test
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
delete_default_site: true
generate_fake_data: true
ssl_cn: localhost
2 changes: 1 addition & 1 deletion devops/roles/appserver/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
action: file dest=/etc/nginx/ssl state=directory

- name: create self-signed SSL cert
action: command openssl req -new -nodes -x509 -subj /C=FR/S=Ile-de-France/L=Paris/OU=IT/O=Cloverfeed/CN={{ssl_cn}} -days 730 -keyout /etc/nginx/ssl/{{app_name}}.key -out /etc/nginx/ssl/{{app_name}}.crt -extensions v3_ca
action: command openssl req -new -nodes -x509 -subj /C=FR/S=Ile-de-France/L=Paris/OU=IT/O=Cloverfeed/CN={{server_name}} -days 730 -keyout /etc/nginx/ssl/{{app_name}}.key -out /etc/nginx/ssl/{{app_name}}.crt -extensions v3_ca
args:
creates: /etc/nginx/ssl/{{app_name}}.crt
notify:
Expand Down
1 change: 0 additions & 1 deletion devops/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
wsgi_callable: app
wsgi_file: wsgi.py
server_name: ranko.emillon.org
ssl_cn: "{{ server_name }}"
dbname: ranko
dbuser: ranko
app_config_file: conf/production.py
Expand Down

0 comments on commit 8abafb3

Please sign in to comment.