zebra-printersnetwork-printers

Zebra ZD410 print from https


I'm trying to get my Zebra ZD410 to print labels from a website. That website is not mine. It runs on https. My printer does work, is connected to my computer, I can send ZPL instructions. The printer is actually connected to my Wi-Fi and has a static IP address of "192.168.2.80".

When browsing to "http://192.168.2.80" the print server page shows up.

The website in question supports, for now, only the Zebra 410 (and most probably other version, just not tested). Their instructions are to click on a link to accept the SSL certificate. Upon clicking on that link, a new page is opened and tries to load https://192.168.2.80, which is refused with "ERR_CONNECTION_REFUSED"

I have tried and successfully sent "!U1 setvar "ip.https.enable" "on" and restarted the printer, it doesn't change anything.


Solution

  • ~DYE:HTTPS_CERT.nrd,B,NRD,REPLACE WITH FILE BYTE SIZE,,-----BEGIN CERTIFICATE-----
    REPLACE WITH YOUR CERTIFICATE CONTENT
    -----END CERTIFICATE-----
    ~DYE:HTTPS_KEY.nrd,B,NRD,REPLACE WITH FILE BYTE SIZE,,-----BEGIN PRIVATE KEY----- 
    REPLACE WITH YOUR KEY CNTENT
    -----END PRIVATE KEY-----
    ^XA
    ^JUS
    ^XZ
    ! U1 setvar "ip.https.enable" "on"
    ! U1 do "device.reset" ""
    

    Upon restart, one can check if the https webserver was enabled with a command:

    You can then navigate, on your browser to your printer's ip using https and also send https API triggers.

    If you wish to then turn off http, you can disable it by sending this command:

    ! U1 setvar "ip.http.enable" "off"