Skip to content

Commit

Permalink
identation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRufino committed Nov 7, 2023
1 parent 0db1f1e commit ec6f72b
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/amplia-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const { PaginatedSearchResponse } = require('./paginated-search-response');
const { RestClient } = require('./rest-client');
const { SignHashResponse } = require('./sign-hash-response');
const { KeyModel } = require('./key-model');
const { IssueSoftwareCertificateRequest} = require( './issue-software-certificate-request');
const { IssueSoftwareCertificateResponse} = require( './issue-software-certificate-response');
const { IssueSoftwareCertificateRequest } = require('./issue-software-certificate-request');
const { IssueSoftwareCertificateResponse } = require('./issue-software-certificate-response');
const { IssuePkcs12CertificateResponse } = require('./issue-pkcs12-cert-response');
const { IssuePkcs12CertificateRequest } = require('./issue-pkcs12-cert-request');

Expand Down Expand Up @@ -242,13 +242,14 @@ class AmpliaClient {
* @param {number} keySize the size of the key for this certificate
* @returns {Promise<IssueSoftwareCertificateResponse>} the response containing the certificate in many formats
*/

async issueSoftwareCertificate(orderId, password, keySize = null) {
const client = this._getRestClient();
const request = new IssueSoftwareCertificateRequest({ orderId, password, keySize });
const response = await client.post('api/certificates/software', request);
const cert = new IssueSoftwareCertificateResponse(response.getBody());
return cert;
}
const client = this._getRestClient();
const request = new IssueSoftwareCertificateRequest({ orderId, password, keySize });
const response = await client.post('api/certificates/software', request);
const cert = new IssueSoftwareCertificateResponse(response.getBody());
return cert;
}
/**
* Issues a PKCS#12 certificate order from Amplia
*
Expand Down

0 comments on commit ec6f72b

Please sign in to comment.