Web API for the Certificates Center
Send orders to the Web service for managing certificates
Build a Certificate Request
GET http://[server]:[port]/certificate/csr/[CommonName]/[NodeID]
Send an order to build a Certificate Request for the given name CommonName saved into the Certificate Center.
Data must be stored in the Certificate Center before generating the Certificate request.
The NodeID is used when using Artica Global Management feature, it represents the Managed group of nodes.
So if you using a single Artica server, use 0 as NodeID
Give a json with the token True or False:
{ "Status": true, "Info": "..", "Error": "" }
Create a Self-signed certificate
POST http://[server]:[port]/certificate/selfsigned
Create a self-Signed certificate, add these fields in the POST
See how to create the Self-Signed certificate using the Web console
- CommonName: my.server.tld
- CountryName: US
- stateOrProvinceName: New York
- localityName: Brooklyn
- emailAddress: postmaster@localhost.localdomain
- OrganizationName: MyCompany Ltd
- OrganizationalUnit: IT service
- subjectAltName: myserver.domain.tld
- subjectAltName1: www.domain.com
- subjectAltName2: ww1.domain.com
- CertificateName: MyCertificateForMyCompany
- CertificateMaxDays: 3650
- levelenc: 1024 or 2048 or 4096
- NodeID: The NodeID is used when using Artica Global Management feature, it represents the Managed group of nodes.
So if you using a single Artica server, use 0 as NodeID
Give a json with the token True or False:
{ "Status": true, "Info": "..", "Error": "" }
Build a “Server certificate” based on a Root certificate
Builds a server certificate based on a certificate stored in the certificate center.
To do this, you need the ID of the main certificate and enter it in the certid key when you post the parameters.
POST http://[server]:[port]/certificate/server/create
Valid fields are:
- CommonName
- subjectAltName
- subjectAltName1
- subjectAltName2
- CountryName
- stateOrProvinceName
- localityName
- OrganizationName
- OrganizationalUnit
- emailAddress
- CertificateMaxDays
- certid
- NodeID: The NodeID is used when using Artica Global Management feature, it represents the Managed group of nodes.
So if you using a single Artica server, use 0 as NodeID