Generate new certificates

With a command editor execute 'renew-certificates\certs\generate-csr.bat' file.

This file create a certs.zip file with '.cnf' and '.csr' files to send to PKI.

You will now have the '.cnf', '.ca', '.csr' and '.key' files.

Upload certificates to AWS

When you obtains your '.cer' files, copy them into 'renew-certificates\certs' folder.

With Visual Studio Code, open project renew-certificates folder.

Open '.vscode/launch.json' file and edit arguments:

  • uploadCertificates: set it at true
  • accessToken: Fresh user access token to connect to iothub

Press F5 to execute the program.

Upload certificates to Pibox

Copy your 'certs' folder into C:\pibox-update\certs' folder.

With a command editor execute 'C:\pibox-update\deploy-pibox.bat' file.

The 'settings.json' file allow you to know wich pibox is already update and a 'logs.txt' file is present in the same folder.

Plan a scheduled task 

  • Connect to the Jumpbox
  • Open the Task Scheduler


  • No labels