Re: SubjectAltNameWarning
Published: August 18, 2022 - 08:55
Hello,
I do have the old certificate in /opt/wapt/waptserver/ssl/.
You need to move the existing key:
`mkdir /root/oldkey` OK
`mv /opt/wapt/waptserver/ssl/key.pem /root/oldkey/` OK
`mv /opt/wapt/waptserver/ssl/cert.pem /root/oldkey/` OK
Restart postconf:
`/opt OK
Save the new key:
`mkdir /root/new` `
OK `mv /opt/wapt/waptserver/ssl/key.pem /root/new/ OK
root/new/` OK
Replace the old certificate
: `mv /root/oldkey/key.pem /opt/wapt/waptserver/ssl/` OK
mv /root/oldkey/cert.pem /opt/wapt/waptserver/ssl/` OK `
systemctl restart nginx` OK
Now you can Retrieve the public key:
cat /root/new/cert.pem /opt/wapt/waptserver/ssl/cert.pem >
/root/srvwapt.mydomain.lan.crt OK
Retrieve the file /root/srvwapt.mydomain.lan.crt and place/replace
the one in C:\Program Files (x86)\wapt\ssl\server\srvwapt.mydomain.lan.crt OK
You can now generate a new agent (which will therefore contain the
new file srvwapt.mydomain.lan.crt) OK
When I run the command wapt-get update on the machine where I deployed the new agent, the SubjectAltNameWarning warning is still present.
I do have the old certificate in /opt/wapt/waptserver/ssl/.
You need to move the existing key:
`mkdir /root/oldkey` OK
`mv /opt/wapt/waptserver/ssl/key.pem /root/oldkey/` OK
`mv /opt/wapt/waptserver/ssl/cert.pem /root/oldkey/` OK
Restart postconf:
`/opt OK
Save the new key:
`mkdir /root/new` `
OK `mv /opt/wapt/waptserver/ssl/key.pem /root/new/ OK
root/new/` OK
Replace the old certificate
: `mv /root/oldkey/key.pem /opt/wapt/waptserver/ssl/` OK
mv /root/oldkey/cert.pem /opt/wapt/waptserver/ssl/` OK `
systemctl restart nginx` OK
Now you can Retrieve the public key:
cat /root/new/cert.pem /opt/wapt/waptserver/ssl/cert.pem >
/root/srvwapt.mydomain.lan.crt OK
Retrieve the file /root/srvwapt.mydomain.lan.crt and place/replace
the one in C:\Program Files (x86)\wapt\ssl\server\srvwapt.mydomain.lan.crt OK
You can now generate a new agent (which will therefore contain the
new file srvwapt.mydomain.lan.crt) OK
When I run the command wapt-get update on the machine where I deployed the new agent, the SubjectAltNameWarning warning is still present.