Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save wvreeven/cc49647a1691219533087a7dff82fc31 to your computer and use it in GitHub Desktop.

Select an option

Save wvreeven/cc49647a1691219533087a7dff82fc31 to your computer and use it in GitHub Desktop.
Create a self-signed certificate for a printer

Login to the printer EWS (Embedded Web Server). Go to Network -> Security -> Certificates. Click Configure and select Create a Certificate Request. Fill out the details and create the CSR (Certificate Signing Request). Save the CSR. It will be called CertRequest.pem.

Using OpenSSL create a private key with no password:

openssl genrsa -out printer_private_key.pem 2048

Using OpenSSL create a self-signed certificate valid for 10 years:

openssl req -x509 -sha256 -days 3650 -key printer_private_key.pem -in CertRequest.pem -out printer_10yr.pem

In the printer EWS click Configure and select Install a Certificate. Select the printer_10yr.pem and click Finish.

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