Skip to content

msalguer/UpdatecertNginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Update certificate Nginx Bash Shell Script

MIT License

This Bash Shell script is an automation sample of update new server certificate when the certificate origin is in p12/pfx format.

  • Requirements: Openssl, Nginx, Linux (tested on any Debian distribution)
  • If the file is created on Windows and copied from FTP, the format must be UNIX, UTF8 without BOM (when password parameter is filled).

For execute:

  • If has not previous installation of openssl:
(sudo) apt-get install openssl
  • First copy certfile (cert_in_pfx_format.p12) on same directory and modify script if need other certificates filenames.
  • Execute script:
chmod +x ./update_cert_nginx.sh
sh ./update_cert_nginx.sh

About

Bash Shell script sample for update certificate server, with Openssl (From p12 file).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages