public key create failed

I create the private.key by nrfutil.exe keys generate C:\key\pricate.key.

Then enter nrfutil keys display --key pk --format code C:\key\private.key --out_file C:\key\public_key.c.

The error happened and output as follow:

  • Hello,

    The problem is that I don't know any way to use the file stored locally on the computer to make nrfutil use it. 

    The bootstrap.json file I can attach here for you:

    {
        "nrfutil_core_tarball_urls": {
            "aarch64-apple-darwin": "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-aarch64-apple-darwin-7.7.0.tar.gz",
            "x86_64-apple-darwin": "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-x86_64-apple-darwin-7.7.0.tar.gz",
            "x86_64-pc-windows-msvc": "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-x86_64-pc-windows-msvc-7.7.0.tar.gz",
            "x86_64-unknown-linux-gnu": "https://developer.nordicsemi.com/.pc-tools/nrfutil/nrfutil-x86_64-unknown-linux-gnu-7.7.0.tar.gz"
        }
    }

    But there is no way to make the new nrfutil use this.

    What you need to do is either:

    1: Use the old nrfutil with a working python version

    2: use VPN or something similar that makes you able to access github.com from the computer where you are trying to install nrfutil. Then, once you have access, use the command:

    nrfutil prepare-offline <PATH>

    where <PATH> is just some location on your computer that you choose to store the offline content. After that, it will work without github access.

Related