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]"