Публічний ключ для перевірки підпису
\-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0Mowsvdp9Gu7SVQodTfT
y6G/TGpMHfR5bKAtoVyyxgbovSA+3CIzCjeQJdyN7NXw3M86DxtRVG0q/0Z9gL12
JAk7L48vQ690Q248cj2GrFR/oNXHllBPZM7rK4XLZyt1EVFWOtiopElJsogzp249
/Zz/nqxdKGxpbysj7NDkjg4QxafzXPIH5Pf/J8Yo8+z8jjIbVTYmuuCzrjh6yBj5
eqHRd3JuszvDwmbFQU67gwOPrnJsMp9uQyvJXL8toIhROJKDPq5LXk2Y8wNInzOb
OUdwEyo8s3kyCx7UteR1dXFFYXIIbzVsaED7dkSufAop7fok/s+sfXyK/vRFOJOF
JQIDAQAB
-----END PUBLIC KEY-----
Приклад генерації підпису
Приватний ключ:
\-----BEGIN RSA PRIVATE KEY-----
MIIBOgIBAAJBANDiE2+Xi/WnO+s120NiiJhNyIButVu6zxqlVzz0wy2j4kQVUC4Z
RZD80IY+4wIiX2YxKBZKGnd2TtPkcJ/ljkUCAwEAAQJAL151ZeMKHEU2c1qdRKS9
sTxCcc2pVwoAGVzRccNX16tfmCf8FjxuM3WmLdsPxYoHrwb1LFNxiNk1MXrxjH3R
6QIhAPB7edmcjH4bhMaJBztcbNE1VRCEi/bisAwiPPMq9/2nAiEA3lyc5+f6DEIJ
h1y6BWkdVULDSM+jpi1XiV/DevxuijMCIQCAEPGqHsF+4v7Jj+3HAgh9PU6otj2n
Y79nJtCYmvhoHwIgNDePaS4inApN7omp7WdXyhPZhBmulnGDYvEoGJN66d0CIHra
I2SvDkQ5CmrzkW5qPaE2oO7BSqAhRZxiYpZFb5CI
-----END RSA PRIVATE KEY-----
Тестові дані:
[{"guid":"432f21a6-41b6-4df5-b9f9-cb5518c77777","recipient":{"last_name":"Ячменюк","first_name":"Віктор","patronymic":"Ігорович","phone":"+380980902417","document_type":"passport","document_number":"862855","document_series":"АВ","document_issued_at":"2009-06-12","document_issued_by":"РВГУМВС"},"amount":"1"}]
Результуючий підпис:
oJEWzQCfCpeR0Mw3GZToqT7ph5aL0bCI6KslyXaDNGH4lnPT8mte00730cz3mp6tzt/5JawfWLv0/OhwNmghUQ==
Приклад з openssl:
echo -n '[{"guid":"432f21a6-41b6-4df5-b9f9-cb5518c77777","recipient":{"last_name":"Ячменюк","first_name":"Віктор","patronymic":"Ігорович","phone":"+380980902417","document_type":"passport","document_number":"862855","document_series":"АВ","document_issued_at":"2009-06-12","document_issued_by":"РВГУМВС"},"amount":"1"}]' | openssl dgst -sha1 -sign myprivate.pem | openssl enc -base64