const apiInstance = new Fastly.TlsCsrsApi();
Note
All URIs are relative to https://api.fastly.com
Method | HTTP request | Description |
---|---|---|
createCsr | POST /tls/certificate_signing_requests | Create CSR |
createCsr({ , [tls_csr] })
Creates a certificate signing request (CSR).
const options = {
tls_csr: {"data":{"type":"csr","attributes":{"sans":["DOMAIN_NAME"],"common_name":"DOMAIN_NAME","key_type":"RSA2048","country":"US","state":"California","city":"San Francisco","organization":"Fastly, Inc.","organizational_unit":"Engineering"},"relationships":{"tls_private_key":{"data":{"type":"tls_private_key","id":"KeYguUGZzb2W9Euo4moOR"}}}}},
};
apiInstance.createCsr(options)
.then((data) => {
console.log(data, "API called successfully.");
})
.catch((error) => {
console.error(error);
});
Name | Type | Description | Notes |
---|---|---|---|
tls_csr | TlsCsr | [optional] |