This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Set CommonName in 9160 modem KEYGEN at command

Hi

I can't set CommonName in the attributes list while generating a private key, it gives an error:

AT%KEYGEN=11,2,0,"CN=my_device,O=SomeOrg"
ERROR

Omitting CN it works fine:

AT%KEYGEN=11,2,0,"O=SomeOrg"
%KEYGEN: "MIHuMIGTAgEAMBMxETAPBgNVBAoMCFNvbWVPcmcNMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE-FtXPk8hvWbhByG7sRGcFA9h1UB08Jjm_nZwHP_pSlpENVJ61n00cTssYpQ4UxKcOCjs6pg-JCkD9vw3G--Bf6AeMBwGCSqGSIb3DQEJDjEPMA0wCwYDVR0PBAQDAgPoMAwGCCqGSM49BAMCBQADSAAwRQIhANPFW0UIKauxl2yOON3HTmo8KioMt3pLSQ9a188xHJWjAiAeeb8Hb5yGeZrO0UhlCd9kA59G7npfmM-SCd_v26DpxA.0oRDoQEmoQRBIVhL2dn3hQlQUE5TUzgxQCuAZR8oWCNHv0ELWCDbxMYQL-QoanVP0sCX-hwp9KR1WUQj6T1f5uobQRVpplB5aKbNaI7jffLE--niJfMhWEA4DhbltN7SFALUlJI4pc6Z-RJNQgbNjdqHBX4zeclZmvDLRXnrzDJTyFxhqy36y_qBIDkeEasf1Y4YMb5mWJgm"

What am I doing wrong?

Thanks!

  • Hi, 

    What are versions of the model firmware, NCS, DK (check white sticker)?

    Can you provide the log with LTE Link Monitor after typing AT%KEYGEN=11,2,0,"CN=my_device,O=SomeOrg"?

  • Hey Amanda thanks for helping me out.

    I tried with the LTE link monitor and it worked. Turns out, in my application I'm passing the KEYGEN command through the Zephyr OS shell, and the shell swallow the quotes! The underscore somehow confuse the modem without the quotes, I think.

    Anyway, if I wrap the attributes in both single and double quotes, the Zephyr shell swallow the outer quotes while keeping the inner quotes, so the following work:

    AT%KEYGEN=11,2,0,'"CN=my_device,O=SomeOrg"'

    Hope this can be of help to others :)

Related