User Tools

Site Tools


linux:certbot_move_cert_to_server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:certbot_move_cert_to_server [2020/06/17 22:18]
admin
linux:certbot_move_cert_to_server [2020/06/17 22:20] (current)
admin
Line 40: Line 40:
  
 Replace admin@sevennet.org with the destination server info, where admin is a username and sevennet.org is a target server domain or IP. Replace admin@sevennet.org with the destination server info, where admin is a username and sevennet.org is a target server domain or IP.
-==== Move SSL certificates ====+ 
 +===== Move SSL certificates ​===== 
  
 This is a really simple step. Log in to the new server and extract the certificates:​ This is a really simple step. Log in to the new server and extract the certificates:​
Line 48: Line 49:
 </​code>​ </​code>​
  
-Extract to the correct location+===== Extract to the correct location ​===== 
  
 Now you need to extract files to the correct location on the new server. Insite archive we already have the correct folder structure, so you can extract it "as is" if you are in the root folder: Now you need to extract files to the correct location on the new server. Insite archive we already have the correct folder structure, so you can extract it "as is" if you are in the root folder:
Line 59: Line 60:
 <​note>​If on the new server you have different Linux distro or custom letsencrypt installation you may need to manually copy files to the correct location.</​note>​ <​note>​If on the new server you have different Linux distro or custom letsencrypt installation you may need to manually copy files to the correct location.</​note>​
  
-=== Create symlinks ===+===== Create symlinks ​===== 
  
  
Line 71: Line 72:
 </​code>​ </​code>​
  
-Point domain to the new server+===== Point domain to the new server ​===== 
  
 Update nginx or apache configuration to use new certificates (for nginx): Update nginx or apache configuration to use new certificates (for nginx):
Line 94: Line 95:
 <code bash> <code bash>
 sudo cat /​etc/​cron.d/​certbot sudo cat /​etc/​cron.d/​certbot
- 
  
 SHELL=/​bin/​sh SHELL=/​bin/​sh
Line 104: Line 104:
 That's it, the domain name is pointing to the new server and certificates can be automatically renewed That's it, the domain name is pointing to the new server and certificates can be automatically renewed
  
-== Cleanup the old server ==+===== Cleanup the old server ​===== 
  
 Now you can remove certificates and renewal config from the old server, execute the following: Now you can remove certificates and renewal config from the old server, execute the following:
linux/certbot_move_cert_to_server.1592425098.txt.gz · Last modified: 2020/06/17 22:18 by admin