Сертификати


        $.get("http://127.0.0.1:5339/api/certificate/list", function (certificates) {
            $.each(certificates, function (index, certificate) {
                data.certificates.push(certificate);
            });
        });
    
    
  1. {{ certificate.commonName }}

    $.ajax({
        url: 'http://127.0.0.1:5339/api/certificate/signdata',
        contentType: 'application/json; charset=utf-8',
        dataType: 'text',
        data: JSON.stringify({ xml: data.xml, thumbprint: thumbprint }),
        type: 'POST',
        success: function (signedXml, textStatus, jqXHR) {
        data.signedXml = signedXml.data;
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert(textStatus + errorThrown);
        }
    });