ec-sri-invoice-signer
Version:
Ecuador SRI invoice signer.
19 lines (18 loc) • 605 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildKeyInfoTag = void 0;
const buildKeyInfoTag = ({ certificateContent, certificateExponent, certificateModulus, keyInfoTagId, }) => {
return `\
<ds:KeyInfo Id="${keyInfoTagId}">\
<ds:X509Data>\
<ds:X509Certificate>${certificateContent}</ds:X509Certificate>\
</ds:X509Data>\
<ds:KeyValue>\
<ds:RSAKeyValue>\
<ds:Modulus>${certificateModulus}</ds:Modulus>\
<ds:Exponent>${certificateExponent}</ds:Exponent>\
</ds:RSAKeyValue>\
</ds:KeyValue>\
</ds:KeyInfo>`;
};
exports.buildKeyInfoTag = buildKeyInfoTag;