This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

UNABLE TO GENERATE PRIVATE KEY

Hi,

I am following a tutorial in order to learn the procedure for DFU OTA . I installed the nrfutil but still unable to generate the private key.

I have tried several commands like :

nrfutil.exe keys generate private.key

nrfutil.exe keys generate priv.pem

but it did not work

I think i am using the latest version . 5.0.0

I am getting such errors : TypeError: write() argument must be str, not bytes
NameError: name 'raw_input' is not defined

Please suggest.
Could I be in wrong directory while writing these commands ?
C:\Users\ArshdeepMalik>nrfutil.exe keys generate private.key

Thanks much!

Parents
  • Hi.

    Please answer these questions:

    1. Which version of Python do you use? (You can check by typing python --version in cmd)

    2. Do you have the correct path in Environment Varables? (Check the path by typing where python in cmd)

    3. Can you check which version of nrfutil you have? (Check by typing nrfutil version in cmd)

    4. Have you also added the folder Python27\Scripts to the path in Environment Varables? 

    Best regards,

    Andreas

Reply
  • Hi.

    Please answer these questions:

    1. Which version of Python do you use? (You can check by typing python --version in cmd)

    2. Do you have the correct path in Environment Varables? (Check the path by typing where python in cmd)

    3. Can you check which version of nrfutil you have? (Check by typing nrfutil version in cmd)

    4. Have you also added the folder Python27\Scripts to the path in Environment Varables? 

    Best regards,

    Andreas

Children
Related