Skip to content

travatine/aruba-1830-cert-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aruba-1830-cert-uploader

A tool to upload certificates to my aruba 1830 switches

Warnings!!!

Take a backup of your switch config & verify you can resore it, before trying this!

Why???

Aruba Instant On 1830 Switches do not support SSH or have any documented APIs.

This tool was make by inspecting network requests made to the switch when manually uploading certificates and then making the same requests via python.

Configuring

certs/ - Put your Private Key & Certificate file in this directory config.sh - this file is loaded by setup.sh

  • Specify the location of your private key file & certificate config.json - this file is loaded by aruba-cert-uploader.py
  • Specify the hostname & credentials of your switches

Recommendations

Create a dedicated user on the switch for uploading certificates.

  • Go to Web GUI > Setup Network > User Management > Add User
  • name the user "certbot" ( or something similar)
  • User needs read/write access.
  • Generate a long password for the user ( add the password to your customized config.json file)

Setting up, Converting keys and Uploading Certificates

./setup.sh

This bash script will:

  • check openssl is installed
  • Set up a Python venv
  • Create an RSA Public key
  • Upload a certificate to the switch
    • If no certificate exists, a self-signed certificate is generated.

Notes

This process has been tested on Aruba 1830 switches running Firmware Version 2.9.1 with both Self Signed Certificates & Certificates from Lets Encrypt.

If you don't use port 443 as your https management port, you will need to update "aruba-cert-uploader.py" with the correct port ( search for 443 ).

Limitations

The startup config is not updated by this process ; this means you need to press save button after uploading certificate. However, if something goes wrong, the switch can be rebooted to undo the changes made by this script.

About

A tool to upload certificates to my aruba 1830 switches

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published