The create command is used to generate and register a VPN peer certificate on a {ANYNODE}.

JSON Input Data Format
{
    "cloudid": string,
    "name": string,
    "comments": string,
    "peer": string
}
cloudid * Specifies the {ANYNODE} ID that will function as the peer provider responsible for establishing the secure VPN tunnel.
name * Specifies a name for the certificate, which can be any desired name.
comments Specifies the additional text used to describe the certificate, such as a label or purpose (e.g., "Mike's VPN").
peer * Specifies the peer ID, which can range from "peer1" to "peer18". Use the list command to check which peer IDs are already in use.
* Indicates a mandatory field.

Code Snippets
Here are several code snippets provided for your direct use. Simply select your preferred tool/language by clicking on it.


Successful Response
{
    "result": "OK",
    "payload": "The process was successfully completed",
    "id": "V758f2cafb-xxxx-xxxx-xxxx-e9f2xxxx9b4a",
    "cert": "[Interface]\nAddress = 11.11.1.2\nPrivateKey = 4Af7PG4BtWk0ZPKobEmoPCxUiwXL2s5AHs3zwBS9NWQ=\nListenPort = 51820\nDNS = 11.11.1.1\n\n[Peer]\nPublicKey = pU3NkB2s992Um1GAcubLNEuNmZRG1+liPMxdOLV3NAM=\nPresharedKey = anwTfTr2c7Ft4a454gMhPlQKITSUXmCctrAB+P9mq4Y=\nEndpoint = 192.168.234.160:443\nAllowedIPs = 10.1.0.0/16\n"
}

Failed Response
{
    "result": "ERR",
    "message": "Error message ..."
}