mathiasringhof / laserjetcertupload

BASH script to take a PEM cert+key, generate a compatible PKCS#12 and upload to a HP LaserJet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LaserJet Cert Upload

BASH script to take a PEM cert+key, generate a compatible PKCS#12 and upload to a HP LaserJet

Successfully tested on:

  • HP Color LaserJet M255dw

Details

Created to automate LetsEncrypt certificate upload to my LaserJet printer, based on Peter Hicks Blog Entry.

For the printer to accept the certificate the script just uses the first block from the generated file, otherwise the upload would fail for me - YMMV.

I'm using cert-manager in Kubernetes but I assume certbot or others would create the exact same output.

About

BASH script to take a PEM cert+key, generate a compatible PKCS#12 and upload to a HP LaserJet

License:Apache License 2.0


Languages

Language:Shell 100.0%