How to fix APC UPS Management Card login using https when the self signed certificate expires

Use SSH to login to the card

C:UsersDemoUserssh -oHostKeyAlgorithms=+ssh-rsa -oCiphers=aes256-cbc apc@192.168.10.7

You will get the following output, Press “Yes” to continue

The authenticity of host ‘192.168.10.7 (192.168.10.7)’ can’t be established.
RSA key fingerprint is SHA256:ZMXmRYyIsKex/0fF9pCCK0bkmn9qBkc9zh36kRYm/D0.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes

Warning: Permanently added ‘192.168.10.7’ (RSA) to the list of known hosts.
apc@192.168.10.7’s password:

apc>dir
E000: Success
0 Jan 9 2020 ./
0 Jan 9 2020 ../
2282 Jan 9 2020 defaultcert.p15

apc>delete defaultcert.p15
E000: Success

apc>reboot
E000: Success
Reboot Management Interface
Enter ‘YES’ to continue or <ENTER> to cancel : YES
Rebooting…

* Reboot required for change to take effect.

To Enable HTTP
apc>web -h enable
E002: Success
Reboot required for change to take effect.

After the reboot you will be able to access APC Management Card again using HTTPS