# HTTPS Certificate Loading - Batch Load

**URL:** <https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930>\
**Category:** PMP\
**Created:** [May 16, 2023, 8:18pm UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930 "2023-05-16T20:18:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelmore](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/k/ee59a6/32.png) [@kelmore](https://community.cambiumnetworks.com/u/kelmore)\
**Post date:** [May 16, 2023, 8:18pm UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/1 "2023-05-16T20:18:34Z")

</div>

Is there potentially a method by which we can load an HTTPS certificate on all units via batch method?

Maestro, CNUT, SSH, SNMP etc? We might try to do it via curl/wget but would be nice if there were another more straightforward method.

 ![image](https://d1okf4ta8xniw3.cloudfront.net/original/3X/f/0/f015814f4fa57b0544ae770c347e98de9671d991.png)

Thanks,  
Kevin

---

<div class="post-metadata">

**Author:** ![Balaji\_Grandhi](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@Balaji\_Grandhi](https://community.cambiumnetworks.com/u/Balaji_Grandhi)\
**Post date:** [May 16, 2023, 11:52pm UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/2 "2023-05-16T23:52:53Z")

</div>

You can use cnMaestro to push a template to all the devices in your network.  
Just in case you are not familiar with creating a template, here is a good article from knowledgebase .

> [@How to create Templates in cnMaestro for PMP radio](https://community.cambiumnetworks.com/t/how-to-create-templates-in-cnmaestro-for-pmp-radio/64792):
>
> Summary:&nbsp; This article demonstrates how to create a template in cnMaestro for ePMP devices Solution: A good method for creating new templates is to make the desired configuration change directly on a test device's web GUI and then export the configuration to use as a baseline. If the test device is managed using cnMaestro you can go to Configure -\> Devices, find that device and click the page icon under the View column. This will display the device's configuration as a template which you c…

Following template will upload HTTPS certificates to the device. You just need to update the “certificate”, “encryptedPassword” and “encryptedPrivateKey” sections

```auto
{
 "userParameters": {
  "networkConfig": {
   "httpsCertificates": [
    {
     "certificate": "-----BEGIN CERTIFICATE-----\nMIICjDCCAfUCFHmiHhpAJ5byU7SbEZm67E77UUsGMA0GCSqGSIb3DQEBCwUAMIGE\nMQswCQYDVQQGEwJVUzELMAkGA1UECAwCSUwxCzAJBgNVBAcMAlJNMRMwEQYDVQQK\nDApNeSBDb21wYW55MRQwEgYDVQQLDAtFbmdpbmVlcmluZzENMAsGA1UEAwwEdGVz\ndDEhMB8GCSqGSIb3DQEJARYSdGVzdEBteWNvbXBhbnkuY29tMB4XDTIzMDUxNjIy\nNTAyNFoXDTMzMDUxMzIyNTAyNFowgYQxCzAJBgNVBAYTAlVTMQswCQYDVQQIDAJJ\nTDELMAkGA1UEBwwCUk0xEzARBgNVBAoMCk15IENvbXBhbnkxFDASBgNVBAsMC0Vu\nZ2luZWVyaW5nMQ0wCwYDVQQDDAR0ZXN0MSEwHwYJKoZIhvcNAQkBFhJ0ZXN0QG15\nY29tcGFueS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAOFCXR2B2My5\nU0krJNtMFDFz7gn4ABa/N/1OY1JRgkIvsAqFQ5+C81g0UHwN6cFZPMqkiqpUEroX\nVBtVvxeoekeFECgjgQ+p0g0TVEmF5JzEOUiaYsFkg5s4kMrXy+YAHi+x5vPEFStZ\nUQ+iF0KR0dyK6I//1Abg1Co1c2KQI/EbAgMBAAEwDQYJKoZIhvcNAQELBQADgYEA\nyhOAiUrtnlG7dwa5C9nG7ycFqBz99x8DfV7JBnWwcWQLi4lhKFWtuBXGOF9psdyi\nDT5vET5oDKTFNwF+VPNQoRjNVBpG2hpqQyumbeIAg/1lelx0lzlX8EGmRW5JdA7z\nbNyuMLNIRR7mW47v8v8f7v4AsSpepQZPx2EozMOfda4=\n-----END CERTIFICATE-----\n"
    },
    {
     "encryptedPassword": "f93a979a93cdc773ba7c7f733b21a53c"
    },
    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CRYPTED PRIVATE KEY-----\n"
    }
   ]
  }
 },
 "configFileParameters": {
  "rebootIfRequired": true
 },
 "cfgFileString": "Canopy configuration file",
 "cfgFileVersion": "1.0"
}

```

Please note that since “rebootIfRequired” field is “true”, the radio will reboot immediately after the configuration is applied.

You can save the template as a “.cfg” file and use SNMP to import the file.  
The OID to import configuration file is “importConfigFile” (.1.3.6.1.4.1.161.19.3.3.3.7.0).

---

<div class="post-metadata">

**Author:** ![kelmore](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/k/ee59a6/32.png) [@kelmore](https://community.cambiumnetworks.com/u/kelmore)\
**Post date:** [May 17, 2023, 6:03pm UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/3 "2023-05-17T18:03:50Z")

</div>

What format and version is the certificate in within the template?

How is the encryptionPassword generated?

Our other approach was to import our file into a radio, then use the text from that configuration file. However, we’re having trouble getting the radio to accept our wildcard certificate. When we’re importing a PKCS12 file in a radio, we’re getting an error, “Error opening file.”, even when we have created the PKCS12 file without a password.

Thanks for the assistance,  
Kevin

---

<div class="post-metadata">

**Author:** ![Balaji\_Grandhi](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/b/8dc957/32.png) [@Balaji\_Grandhi](https://community.cambiumnetworks.com/u/Balaji_Grandhi)\
**Post date:** [May 22, 2023, 8:17pm UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/4 "2023-05-22T20:17:34Z")

</div>

I’m sorry for the delay in my response.  
The certificate in the above example was in PKCS12 format.  
The approach you’ve suggested is the way to go.  
Could you please open a support ticket to help with importing the certificate.

---

<div class="post-metadata">

**Author:** ![kelmore](https://d10gw3vjmzyp8.cloudfront.net/letter_avatar_proxy/v4/letter/k/ee59a6/32.png) [@kelmore](https://community.cambiumnetworks.com/u/kelmore)\
**Post date:** [June 1, 2023, 3:42am UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/5 "2023-06-01T03:42:37Z")

</div>

No Apologies Necessary. We were able to get the HTTPS certificate imported after reviewing a few other helpful posts ([generating-rsa-private-key-and-public-certificate-for-https](https://community.cambiumnetworks.com/t/generating-rsa-private-key-and-public-certificate-for-https/77372)

However, now that the AP has a valid HTTPS cert, it seems browsing to the SM via the AP’s proxy mechanism no longer works, while accessing the AP utilizing the valid HTTPS cert. This seems to be the behavior on 22.0.2.

When we browse to the IP of the AP, proxy to the SM is fine. I did try installing the new certificate on the SM as well but it didn’t make a difference.

---

<div class="post-metadata">

**Author:** ![system](https://d1okf4ta8xniw3.cloudfront.net/original/3X/c/d/cd4301339a1ee0b92b361a580797b682408b951e.png) [@system](https://community.cambiumnetworks.com/u/system)\
**Post date:** [May 31, 2024, 3:43am UTC](https://community.cambiumnetworks.com/t/https-certificate-loading-batch-load/92930/6 "2024-05-31T03:43:03Z")

</div>

Closed on May 31, 2024, 3:43am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
