Installing package with expired certificate

How can I get around error when installing a package whose certificate has expired and the vendor doesn’t have a later version of the installer?

You can always sign the package with your own certificate. You can also install it via the command line “installer” command. When are you getting an error?