You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

??? ????????????? ? ???????? ????????? ?????????? ?????? ???????????:

  • ???????? ????????? ? ????????? base64 ? ??????? PKCS#12, ????????????? ???????? ??? ("Key-6.dat", "?????????? jks", "??????? ZS2"). ? ?????? ???????? ???????? ??? ?????????? ???????? ???????? ??, ???????????? ? ????????????? ????? ?????????????? ?????? ???? ?, ? ?????? ???????, ?????????? (??????? ????????????) ?? ???????????? ????????? ??????????.
  • ???? ? ??????????? ??????? ? ????????? ?????????? ??? ??????????? ???????? ? ?????????? PKCS#11 ? ???????? (?????????) ??????.

???? ? ??????????? ???????? ? ?????????? PKCS#11, ??????? ????????? ? ??????????, ?? ??????? ??????????? ??????, ?????????? ???????? ??????????? ??????? https://docs.cipher.kiev.ua/x/GYOD.

???? ? ??????? ???????????? ???????????? ?????? ????????? ????????? ?????????? ? ???? ? ????????? ??????????, ?? ????? ??????????? ?????? ????.

???? ?????????? ????????? ??? ?????? ???? ????????? ? ?????? ????????? ??????????, ? ???? ? ????????? ??????????, ?? ????? ??????????? ?????? ????.

?????? ????????? ?????????? ?????? ????????? ? ??????????? ?????? ? ??????? ???????? ?? ??????? ???????? ?????? ? ?????????? ??????????? ??????? Java ??????????? ????????? ?????? ??????. ?????? ????????? ?????????? ??????? ?? ??????????? ???????? ? ????, ???? ?????? ??? ?????? ??????? ??? ????????????? ???????? ??????????.  

URL-????? ???????

https://local.cipher.kiev.ua:9090/api/v1/ticket/{uuid}/keyStore

?????

PUT

????????? ???????
uuidString????????????? ??????
????????????? ????????? ???????
Content-Typeapplication/json
????????? JSON ??????? ???????
???
???
????????
?????????? ????????
base64Data
String???????? ????????? ? ????????? Base64????????? ?????????????? Base64 ??????
keyStorePathString

???? ? ??????????? ??????? ? ????????? ?????????? ??? ??????????? ???????? ? ?????????? PKCS#11

??? ????????? ?????? ???????????? ?????????? ????????? ?????????? ???????????? ??????
?????
??? ??????Content-type?????????? ??????????????? ???????????
200application/jsonmessage

{
    "message" : "?????? ????????? ?????????? ??????? ?????????.",
}

503application/jsonmessage

{
    "message" : "?????? ???????? ?????? ?? ???????."
}

400application/jsonmessage{
    "message" : "?????? ???????????."
}
500application/jsonmessage
failureCause 
{
    "message" : "?????? ??? ???????? ?????? ????????? ??????????.",
"failureCause" : ""
}
????????? JSON ??????? ??????
??????????? ??????????????
messageString???????? ?????????? ?????????? ????????
failureCause String???????? ??????? ????????????? ??????
?????? ???? ?? JavaScript + jQuery 2.2.4 ? ?????? ????????????? ??????????? ???????? ? ???????? ??????
var data = {
    keyStorePath: "@. Avtor SecureToken 0"
}
$.ajax({
    url: "https://local.cipher.kiev.ua:9090/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/keyStore",
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    data: JSON.stringify(data)
}).done(function (jsonResponse, textStatus, xhr) {
    message = jsonResponse.message;
}).fail(function (xhr) {
    try {
        var jsonResponse = JSON.parse(xhr.responseText);
        message = jsonResponse.message;
        failureCause = jsonResponse.failureCause;
    } catch (e) {
        message = (xhr.responseText == undefined) ? "?????? ??? ???????? ?????? ????????? ??????????." : xhr.responseText;
    }
})
?????? ???? ?? JavaScript + jQuery 2.2.4 ? ?????? ????????????? ????????? ?????????? ? ????????? ????
var data = {
    keyStorePath: "z:\\sharedFiles\\temp\\7\\Molyakov_overdue-DS+Arg.pfx"
}
$.ajax({
    url: "https://local.cipher.kiev.ua:9090/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/keyStore",
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    data: JSON.stringify(data)
}).done(function (jsonResponse, textStatus, xhr) {
    message = jsonResponse.message;
}).fail(function (xhr) {
    try {
        var jsonResponse = JSON.parse(xhr.responseText);
        message = jsonResponse.message;
        failureCause = jsonResponse.failureCause;
    } catch (e) {
        message = (xhr.responseText == undefined) ? "?????? ??? ???????? ?????? ????????? ??????????." : xhr.responseText;
    }
})
?????? ???? ?? JavaScript + jQuery 2.2.4 ? ?????? ????????????? ?????? ????????? ??????????
var data = {
    base64Data: "?????? ????????? ?????????? ? ????????? base64"
}
$.ajax({
    url: "https://local.cipher.kiev.ua:9090/api/v1/ticket/79343564-147f-4a2a-ac2a-182d7a55f802/keyStore",
    type: "POST",
    dataType: "json",
    contentType: "application/json",
    data: JSON.stringify(data)
}).done(function (jsonResponse, textStatus, xhr) {
    message = jsonResponse.message;
}).fail(function (xhr) {
    try {
        var jsonResponse = JSON.parse(xhr.responseText);
        message = jsonResponse.message;
        failureCause = jsonResponse.failureCause;
    } catch (e) {
        message = (xhr.responseText == undefined) ? "?????? ??? ???????? ?????? ????????? ??????????." : xhr.responseText;
    }
})


  • No labels