Quote
/server irc.us.libera.chat -k expired4.pem

You need to use -key to specify the key filename, and you need to specify that it is an SSL server, so that the SSL certificate is used. When I use the following:

/server irc.us.libera.chat +7000 -key expired.pem

It works as expected for me and shows the SSL expired certificate warning.