Modem Certificate Management from zephyr Shell(CLI)

Hi,
I want to update the AWS certificate for Device from CLI at time of Production.
They files including Amazon root Certificate ,Client Cert and Private key are in PEM format. I am using at Wrapper for using AT commands in Zephyr Shell. I am unable to paste the whole certificate in shell due to multiline format of file.
so I removed carriage return and new line character from certs files and make it only single line text in file.
now if I  want use the files as a cert files its not working ,I am not able provision the device.
I am using following AT commands from Zephyr shell at AT%CMNG.

Is there any way that I  give path of text file in this command.
or any other alternative for Device Provisioning other then LTE link monitor terminal.

Thanks 

Parents
  • HI Hakon,


    I tried every way but still no success,

    Even  i tried from LTE link command terminal AT%CMNG=0,sec_tag,0,"certficate text" for CA cert,and then in sequence for other
    I am getting the error at the time of connectivity aws connect error -95.


  • Hi,

     

    Waqar Ahmed said:
    Even  i tried from LTE link command terminal AT%CMNG=0,sec_tag,0,"certficate text" for CA cert,and then in sequence for other
    I am getting the error at the time of connectivity aws connect error -95.

    Just to verify the behavior here. The certificates are written OK, ie. AT%CMNG=... for CA/client/private keys are written successfully, but you cannot connect successfully?

     

    Are you able to connect successfully if use the "at_client" to issue the certificates, and then flash your application?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Waqar Ahmed said:
    Even  i tried from LTE link command terminal AT%CMNG=0,sec_tag,0,"certficate text" for CA cert,and then in sequence for other
    I am getting the error at the time of connectivity aws connect error -95.

    Just to verify the behavior here. The certificates are written OK, ie. AT%CMNG=... for CA/client/private keys are written successfully, but you cannot connect successfully?

     

    Are you able to connect successfully if use the "at_client" to issue the certificates, and then flash your application?

     

    Kind regards,

    Håkon

Children
Related