From 4c8baf32afba455539a2350c1c1b45ab611ece35 Mon Sep 17 00:00:00 2001 From: hina Date: Sat, 19 Sep 2015 13:45:49 +0900 Subject: [PATCH] gen cert with sha256 --- provision/site-cookbooks/wpcli/recipes/install.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provision/site-cookbooks/wpcli/recipes/install.rb b/provision/site-cookbooks/wpcli/recipes/install.rb index cb8d0a6..49f9b96 100644 --- a/provision/site-cookbooks/wpcli/recipes/install.rb +++ b/provision/site-cookbooks/wpcli/recipes/install.rb @@ -271,7 +271,7 @@ cwd File.join(node[:apache][:dir], 'ssl') code <<-EOH openssl genrsa -out server.key 2048 - openssl req -new -key server.key -subj '/C=JP/ST=Wakayama/L=Kushimoto/O=My Corporate/CN=#{node[:fqdn]}' -out server.csr + openssl req -new -key server.key -sha256 -subj '/C=JP/ST=Wakayama/L=Kushimoto/O=My Corporate/CN=#{node[:fqdn]}' -out server.csr openssl x509 -in server.csr -days 365 -req -signkey server.key > server.crt EOH notifies :restart, "service[apache2]"