Create a self-signed certificate

Prev Next

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) <name given at the import time>"
"hostname": "(string) <hostname>"
"common_name": "(string) <simple name>"
"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