@@ -1142,7 +1142,8 @@ static ATCA_STATUS constructCSR(char* pem, size_t* pem_size) {
11421142 .cert_elements = NULL ,
11431143 .cert_elements_count = 0 ,
11441144 .cert_template = csr,
1145- .cert_template_size = length};
1145+ .cert_template_size = length,
1146+ .ca_cert_def = NULL };
11461147
11471148 return (ATCA_STATUS)atcacert_create_csr_pem (&csr_definition, pem, pem_size);
11481149}
@@ -1672,7 +1673,7 @@ void otherServiceMqttProvision() {
16721673
16731674 while (!requestAndSaveToNVM (
16741675 F (" Please paste in the CA certificate and press enter. It "
1675- " should be on the follwing form:\r\n "
1676+ " should be on the following form:\r\n "
16761677 " -----BEGIN CERTIFICATE-----\r\n "
16771678 " MIIDXTCCAkWgAwIBAgIJAJC1[...]j3tCx2IUXVqRs5mlSbvA==\r\n "
16781679 " -----END CERTIFICATE-----\r\n " ),
@@ -1775,7 +1776,7 @@ void otherServiceMqttProvision() {
17751776 while (!requestAndSaveToNVM (
17761777 F (" Please paste in the public key certificate provide by "
17771778 " your broker after having signed the CSR\r\n and press "
1778- " enter. It should be on the follwing form:\r\n "
1779+ " enter. It should be on the following form:\r\n "
17791780 " -----BEGIN CERTIFICATE-----\r\n "
17801781 " MIIDXTCCAkWgAwIBAgIJAJC1[...]j3tCx2IUXVqRs5mlSbvA=="
17811782 " \r\n "
@@ -1870,7 +1871,7 @@ void otherServiceMqttProvision() {
18701871 while (!requestAndSaveToNVM (
18711872 F (" Please paste in the public key certificate and press "
18721873 " enter. It "
1873- " should be on the follwing form:\r\n "
1874+ " should be on the following form:\r\n "
18741875 " -----BEGIN CERTIFICATE-----\r\n "
18751876 " MIIDXTCCAkWgAwIBAgIJAJC1[...]j3tCx2IUXVqRs5mlSbvA==\r\n "
18761877 " -----END CERTIFICATE-----\r\n " ),
@@ -2001,7 +2002,7 @@ void provisionHttp() {
20012002 while (!requestAndSaveToNVM (
20022003 F (" Please paste in the CA certificate and press enter. It "
20032004 " should "
2004- " be on the follwing form:\r\n "
2005+ " be on the following form:\r\n "
20052006 " -----BEGIN CERTIFICATE-----\r\n "
20062007 " MIIDXTCCAkWgAwIBAgIJAJC1[...]j3tCx2IUXVqRs5mlSbvA=="
20072008 " \r\n "
0 commit comments