First check that your device date, time and time zone are correct.

Check that your device has a latest software installed via Nokia Suite (or SW Update).

If your device has newest software and time is correct and the phone still gives the same error Certificate expired, the certificate of the application that you are trying to install might have already been expired.