Skip to content

Instantly share code, notes, and snippets.

@tiagohillebrandt
Last active November 15, 2024 21:29
Show Gist options
  • Save tiagohillebrandt/4121a982634a055731d49718a562e2e6 to your computer and use it in GitHub Desktop.
Save tiagohillebrandt/4121a982634a055731d49718a562e2e6 to your computer and use it in GitHub Desktop.
Resolving HP Printer Certificate Expired Error on macOS

I'm sharing this solution because during my research all the recommended solutions would require me to have a Windows device to regenerate the certificate.

My printer was available on macOS's Printers, but when I tried to print it wouldn't work, and when I opened the printer queue a message saying that the certificate was expired was being displayed.

The printer used to work on the older macOS versions, however after the macOS 14 upgrade it stopped working.

This solution has been tested on macOS Sequoia 15.1.

Solution

  1. Update your printer firmware to the latest version available on HP site.
  2. Access System Settings > Printers and remove your printer.
  3. Run the below command on terminal to enable the CUPS web interface:
cupsctl WebInterface=yes
  1. Open http://localhost:631/admin to access the CUPS web interface.
  2. Click on Add Printer, select your printer and proceed with adding it.
    • If an username and password is asked, please provide the credentials for your macOS user.
  3. After the printer is added, restart CUPS print server:
sudo launchctl stop org.cups.cupsd
sudo launchctl start org.cups.cupsd
  1. Access System Settings > Printers, right-click on the printer and set it up as default printer.

That's all, now you should be able to print as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment