<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Awsbackup.apoyar.eu_SSL_Renew</id>
	<title>Awsbackup.apoyar.eu SSL Renew - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apoyar.eu/index.php?action=history&amp;feed=atom&amp;title=Awsbackup.apoyar.eu_SSL_Renew"/>
	<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Awsbackup.apoyar.eu_SSL_Renew&amp;action=history"/>
	<updated>2026-07-20T14:07:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.apoyar.eu/index.php?title=Awsbackup.apoyar.eu_SSL_Renew&amp;diff=255&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Karol&#039;s Comments - -------------------  First, you need to allow SSH in the AWS from Nagios.  Then, go to Nagios and use the keypair specified in the AWS console.  The user is cpmuser  This cannot be changed as with every update the whole machine gets replaced, only sustaining the data drive.  Please also run apt-get update and apt-get upgrade and apt-get dist-upgrade and apt-get autoclean there.  It&#039;s safe to reboot as many times you need, as the backups start at 20:00...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.apoyar.eu/index.php?title=Awsbackup.apoyar.eu_SSL_Renew&amp;diff=255&amp;oldid=prev"/>
		<updated>2022-12-01T06:11:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Karol&amp;#039;s Comments - -------------------  First, you need to allow SSH in the AWS from Nagios.  Then, go to Nagios and use the keypair specified in the AWS console.  The user is cpmuser  This cannot be changed as with every update the whole machine gets replaced, only sustaining the data drive.  Please also run apt-get update and apt-get upgrade and apt-get dist-upgrade and apt-get autoclean there.  It&amp;#039;s safe to reboot as many times you need, as the backups start at 20:00...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Karol&amp;#039;s Comments -&lt;br /&gt;
-------------------&lt;br /&gt;
&lt;br /&gt;
First, you need to allow SSH in the AWS from Nagios.&lt;br /&gt;
&lt;br /&gt;
Then, go to Nagios and use the keypair specified in the AWS console.&lt;br /&gt;
&lt;br /&gt;
The user is cpmuser&lt;br /&gt;
&lt;br /&gt;
This cannot be changed as with every update the whole machine gets replaced, only sustaining the data drive.&lt;br /&gt;
&lt;br /&gt;
Please also run apt-get update and apt-get upgrade and apt-get dist-upgrade and apt-get autoclean there.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s safe to reboot as many times you need, as the backups start at 20:00 CET.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
STEPS -&lt;br /&gt;
------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
- Allow SSH access from Nagios to backup_machine&lt;br /&gt;
&lt;br /&gt;
- Connect to nagios.apoyar with neal user&lt;br /&gt;
&lt;br /&gt;
su (ap0yar)&lt;br /&gt;
&lt;br /&gt;
cd /root/.ssh/&lt;br /&gt;
&lt;br /&gt;
ssh -i &amp;quot;zeb.pem&amp;quot; cpmuser@18.200.187.204 (this will connect to backup_machine server)&lt;br /&gt;
&lt;br /&gt;
go to /etc/apache2/sites-available/&lt;br /&gt;
&lt;br /&gt;
first run below command&lt;br /&gt;
&lt;br /&gt;
certbot --dry-run renew&lt;br /&gt;
&lt;br /&gt;
It should give message like - Congratulations, all simulated renewals succeeded&lt;br /&gt;
&lt;br /&gt;
if giving any error need to resolve that first&lt;br /&gt;
&lt;br /&gt;
If its related to port 80, we need to free up that port for renewal&lt;br /&gt;
check what are running services with below command&lt;br /&gt;
&lt;br /&gt;
netstat -tulpn | grep LISTEN&lt;br /&gt;
&lt;br /&gt;
if we find any service running on port 80.. stop that and then try &amp;quot;certbot --dry-run renew&amp;quot; command again&lt;br /&gt;
once its got succeeded then we have to run below command&lt;br /&gt;
&lt;br /&gt;
certbot renew (this will automatically renew existing SSL certificate).&lt;br /&gt;
&lt;br /&gt;
also we have to run below commands on by one&lt;br /&gt;
&lt;br /&gt;
apt-get update&lt;br /&gt;
&lt;br /&gt;
apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
apt-get dist-upgrade&lt;br /&gt;
&lt;br /&gt;
apt-get autoclean&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note :- While running above commands  it will ask either to upgrade or keep existing .conf files, so we have to keep existing with N or O&lt;br /&gt;
&lt;br /&gt;
Also if machine need reboot, we can do it in day time.&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>