mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Ignore messy stderr from openssl commands during self-signed cert generation
This commit is contained in:
parent
109cbf7641
commit
e1539297a5
1 changed files with 2 additions and 2 deletions
|
@ -167,9 +167,9 @@ def certificate_install_selfsigned(domain_list, force=False):
|
|||
# We should be able to do all this using OpenSSL.crypto and os/shutil
|
||||
command_list = [
|
||||
'sed -i "s/yunohost.org/%s/g" %s/openssl.cnf' % (domain, cert_folder_domain),
|
||||
'openssl req -new -config %s/openssl.cnf -days 3650 -out %s/certs/yunohost_csr.pem -keyout %s/certs/yunohost_key.pem -nodes -batch'
|
||||
'openssl req -new -config %s/openssl.cnf -days 3650 -out %s/certs/yunohost_csr.pem -keyout %s/certs/yunohost_key.pem -nodes -batch 2>/dev/null'
|
||||
% (cert_folder_domain, ssl_dir, ssl_dir),
|
||||
'openssl ca -config %s/openssl.cnf -days 3650 -in %s/certs/yunohost_csr.pem -out %s/certs/yunohost_crt.pem -batch'
|
||||
'openssl ca -config %s/openssl.cnf -days 3650 -in %s/certs/yunohost_csr.pem -out %s/certs/yunohost_crt.pem -batch 2>/dev/null'
|
||||
% (cert_folder_domain, ssl_dir, ssl_dir),
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue