# Create P2P Secret

# With CLI

First install the @gny/cli via npm:

npm install --global @gny/cli
1

Then execute the createp2psecret command:

gny-cli createp2psecret
1

The result:

{
  "id": "QmS8qAn5UYykHD2FpqmELMTDFAB5WKBSWiKJWX4U7cnnR3",
  "privKey": "CAASpwkwggSjAgEAAoIBAQCXtFhfimFv+VSF...",
  "pubKey": "CAASpgIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCXtFhfimFv+..."
}
1
2
3
4
5

TIP

The p2p secret is the key privKey starting with: CAASpwkwggSjAgEAAoIBAQCXtFhfi...