• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Experiencing 'Printer Blocked' or 'Printer Error' message? Click here for more information.
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our Black or Color Ink Not Printing, Other Print Quality Issues info about: Print quality and Cartridge Issues.
HP Recommended

Hello Community, can someone help me figure out how to fix the expired certificate issue when I go to print from my Macbook. I tried the HP Smart App but it does not have the Advance Setting option to go into the EWS website?

2 REPLIES 2
HP Recommended

Just type the IP address of your printer into the address bar of your browser, that will connect you to the EWS as well.

If you find the information provided useful or solves your problems, help other users find the solution easier by marking my post as an accepted solution. Clicking "yes" on "was this reply helpful" also increases the chances that this solution will help others.
I am a volunteer, offering my knowledge to support fellow users, I do not work for HP nor speak for HP.



HP Recommended

I finally got my printer to work correctly by creating a certificate and installing it with keychain and setting it to always trust then uploading it to the printer. I was using the generic PCL driver but the color and quality wasn't very good.  I can now use the proper HP driver for my HP_Color_LaserJet_Pro_M478f_9f.  Follow the steps below and hopefully it will work for you as well.

 

CREATE THE REQ FILE.

1. Open textedit and paste the following:

[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = xxxxxxx
ST = xxxxxx
L = xxxx
O = HP
OU = HP-IPG
CN = xxxxxxxxxxxxx.xxxxxx.xx.x.xxxx.xx
[v3_req]
keyUsage = digitalSignature, keyEncipherment, dataEncipherment, nonRepudiation
extendedKeyUsage = serverAuth
subjectAltName = @alt_names
[alt_names]
DNS.1 = localhost
DNS.2 = 127.0.0.1

2. Open System Settings/Printers & Scanners

3. Select the HP printer with the expired certificate.

4. In the pop-up GUI select "Printer Queue..."

5. In this pop-up select "Show Printer Web Page..."

6. Do what you need to do to access the web page ie. answer security warning, login etc...

7. On the web page select "+Security/Certificates".

8. Under Printer Certificate section select "(view)" next to Staus: Installed.

9. In the Issuer and /or Subject block you will find the values for CN, L, ST, and C. Copy
these values to the textedit file replacing the xx's Ensure you maintain the space before and after the = in the text file.

Screenshot 2025-01-26 at 08.48.15.png

10. After inputting all of the values in the textedit save the file as req.conf in a new folder on the desktop.

11. Open /System/Applications/Utilities/Terminal.app and cd to the folder on the Desktop. ie. cd Desktop/New_Folder <enter>

12. In terminal type/paste the following OpenSSL command then press <enter>. This will create key.pem and certificate.pem in the folder on the desktop: openssl req -x509 -nodes -days 6000 -newkey rsa:2048 -keyout key.pem -out certificate.pem -config req.conf -extensions 'v3_req'

13. In terminal type/paste the following OpenSSL command to get the P12 file used for the printer. Remember the password you input when running this command: openssl pkcs12 -inkey key.pem -in certificate.pem -export -out certificate.p12

 

INSTALL CERT ON MAC

1. Go to the Keychain Access App on your device.

2. Select "File/Import Items..."

3. Select the cert file that you created earlier.

4. Double click on the imported cert and expand the trust section

5. Set it to "Always Trust". Note: You may have to do this twice to get all of the selections.

 

Screenshot 2025-01-26 at 10.11.24.png

INSTALL CERT ON PRINTER
1. On the printer webpage select "+Security/Certificates". Select the "Configure" button. 

2. Select "Import a Certificate and Private Key" then select "Next"

3. Select "Choose File" and navigate to the desktop folder created earlier. Select the .p12 file. then select "Upload"

4. In the Password section input the password used when you made the .p12 file in step 13 above.

5. Select "Mark private key as exportable". If you need to you will be able to export the cert from the printer at a later date.

6. Select "Finish".

 

You should be able to print now using the proper HP driver.  If you are using the generic driver remove and reinstall the printer on your Mac.

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.