--- title: "Create a self-signed certificate" slug: "create-a-self-signed-certificate" tags: ["Reference"] updated: 2026-09-03T18:40:47Z published: 2026-09-03T18:40:47Z canonical: "docs.trellix.com/create-a-self-signed-certificate" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Create a self-signed certificate Creates a self-signed certificate. ### API URL `POST https://<host>/wsapis/v2.0.0/certmgmt/selfsigned -d <payload>` ### Payload JSON containing the following fields: ``` "certificate_name": "(string) " "hostname": "(string) " "common_name": "(string) " "country_name": (string) "state_or_province_name": (string) "locality_name": (string) "organization_name": (string) "organizational_unit_name": (string) "email_address": (string) "certificate_format": (string) "key_algorithm": (string) "serial_number": (string) "comment": (string) "key_size_bits": (string) "validity_days": (string) "regenerate": (string) ``` ### Sample curl requests `curl -gsSk -H "$c" 'https://<host>/wsapis/v2.0.0/certmgmt/selfsigned' -H 'content-type:application/json' -d '{"cert_name" : "foobar"}' ` ### Sample curl response ` {"error":false,"message":"Certificate created"}` **Availability** This command is available on the following platforms: - Network Security - Helix Enterprise ### Authentication Standard WSAPI authentication ### Response mime type `application/json` :