What is the correct formatting for swarm.key file in private IPFS network

Hi,

I am working on creating a private network by following the below link:

I have generated the swarm file which looks like this:
/key/swarm/psk/1.0.0/
/base16/
9c0c40be04eeaâa“fb9âf9f“fd0“c“dâefâ9ce“efe9âdbfe0ebâebfbrc0edâeb

After running the IPFS daemon, I am getting error, Kindly suggest the correct file formatting for swarm.key for Ubuntu.

Thanks,
Danish

That swarm key is not hex and is very corrupted. It looks like the article is incorrect. ~tr does not appear to work on binary~ edit: that tr command has an m-dash instead of a hyphen.

Try using option 2 for generating a swarm key.

I used this guide by @ahester57 to generate a swarmkey. Try and see if it works for you.