Certificates are added to the keychain. Expired or revoked certificates remain in the keychain, e.g. to maintain access to older, encrypted emails. When the computer is set up and set up again, all previous, old certificates should also be installed.
Click the file (PKCS12 format) that contains the key and the certificate. Screenshot certificate
Select "login" for keychain and click "Add". Screenshot macOS: installation window
When prompted for the certificate password, enter the password and click "OK". Screenshot macOS: password request
After the installation you will be redirected to the Keychain Access. There you can see the certificate you just installed under "My Certificates". Screenshot macOS: Keychain Access