[WordPress] 外掛分享: Sign Documents with Crypto Pro

WordPress 外掛 Sign Documents with Crypto Pro 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Sign Documents with Crypto Pro」是 2026-02-02 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-02-03,距離現在已有 23 天。
  • 外掛最低要求 WordPress 5.7 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 8.0 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

enkydo |

外掛標籤

gost | crypto | signature | crypto-pro |

原文外掛簡介

This plugin allows you to sign HTML DOM element content with CryptoPro GOST certificates.
Element content will be converted to PDF and signed by selected cretificate.
Plugin uses https://www.npmjs.com/package/crypto-pro-actual-cades-plugin#api-cryptopro lib
JavaScript Libraries
This plugin uses the following JavaScript libraries:

jsPDF v4.0.0 – https://github.com/parallax/jsPDF
A library to generate PDFs in JavaScript

Source JavaScript files are located in the js folder. Plugin scripts are built with Vite; the configuration is in vite.config.js. Build scripts are defined in package.json. For development, use npm (e.g. npm run dev, npm run build).
Software Dependencies
This plugin requires the following software to be installed on the user’s system:

КриптоПро CSP – https://cryptopro.ru/products/csp
КриптоПро ЭЦП Browser plug-in – https://docs.cryptopro.ru/cades/plugin

For more information about КриптоПро CSP, please see the product leaflet: https://cryptopro.ru/sites/default/files/products/csp/cryptopro_csp_leaflet_a4.pdf
All rights for КриптоПро CSP and КриптоПро ЭЦП Browser plug-in are reserved by © ООО «КРИПТО-ПРО».
Recommended Browser
Browsers that do not require additional browser extension configuration after plugin installation:

Chromium-Gost – https://cryptopro.ru/products/chromium-gost
Yandex Browser for organizations – https://browser.yandex.ru/b/cryptopro_plugin

Alternative Browsers
If you plan to use a different browser, you will need to manually enable the browser extension after completing the plugin installation. Use the instruction corresponding to your browser:

Chromium-based browser (Chrome, Microsoft Edge) – https://docs.cryptopro.ru/cades/plugin/plugin-installation-unix?id=%d0%98%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f-%d0%b4%d0%bb%d1%8f-%d0%b1%d1%80%d0%b0%d1%83%d0%b7%d0%b5%d1%80%d0%be%d0%b2-%d0%bd%d0%b0-%d0%be%d1%81%d0%bd%d0%be%d0%b2%d0%b5-chromium
Opera browser or Yandex Browser – https://docs.cryptopro.ru/cades/plugin/plugin-installation-unix?id=%d0%98%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f-%d0%b4%d0%bb%d1%8f-%d0%b1%d1%80%d0%b0%d1%83%d0%b7%d0%b5%d1%80%d0%be%d0%b2-opera-%d0%b8%d0%bb%d0%b8-%d0%af%d0%bd%d0%b4%d0%b5%d0%ba%d1%81%d0%91%d1%80%d0%b0%d1%83%d0%b7%d0%b5%d1%80
Firefox browser – https://docs.cryptopro.ru/cades/plugin/plugin-installation-unix?id=%d0%98%d0%bd%d1%81%d1%82%d1%80%d1%83%d0%ba%d1%86%d0%b8%d1%8f-%d0%b4%d0%bb%d1%8f-%d0%b1%d1%80%d0%b0%d1%83%d0%b7%d0%b5%d1%80%d0%be%d0%b2-firefox
Installing browser extension from file for different browsers – https://support.cryptopro.ru/index.php?/Knowledgebase/Article/View/467

Hooks
This plugin provides several hooks to extend its functionality.
PHP Hooks
sdcp_params

Filters the shortcode parameters. You can change the DOM element id to sign
add_filter('sdcp_params', 'change_sdcp_params');
function change_sdcp_params($sdcp_params)
{
// Your code here
return $sdcp_params;
}

sdcp_cert_list_item

Filters the list item of the certificate. You can filter cerst by INN, owner, cn
add_filter('sdcp_cert_list_item', 'change_sdcp_cert_item_li');
function change_sdcp_cert_item_li($item)
{
// Your code here
return 'Signed at: ' . esc_html($item['created_at']) . ' by ' . esc_html($item['owner']);
}

sdcp_saved_sign

This action is triggered after a signature is saved. You can do anything with signed data array
add_action('sdcp_saved_sign', 'sdcp_get_datasignement', 50, 1);
function sdcp_get_datasignement($saved_data)
{
// Your code here
}

JavaScript Hooks
You must add yur own script to WordPress at first
function sdcp_hook_javascript_footer() {
?>

{
console.log(certs);
return certs;
};
success

This hook is triggered after the form is submitted successfully.
sdcp_ajax_object.callbacks.push({ hook: "success", callback: success });
const success = (successData) => {
console.log(successData);
return successData;
};

error

This hook is triggered if an error occurs during form submission.
sdcp_ajax_object.callbacks.push({ hook: "error", callback: errors });
const errors = (errorData) => {
console.log(errorData);
return errorData;
};

listoptions

This hook is triggered when the certificate options are being rendered.
sdcp_ajax_object.callbacks.push({ hook: "listoptions", callback: listoptions });
const listoptions = (cert) => {
console.log(cert);
return Owner: ${cert.owner}, Expires: ${new Date(
cert.validTo
).toLocaleDateString()}`;

};`
Verification
To verify the attached signature, you can use the CryptoPro aplication in your browser, or the Gosuslugi service.
Plugin makes the attached signature and store it in post meta field “sdcp_sign” in “sign” json field.
Plugin give you link to download the signatures as file in [sdcp_show_creation_date] shortcode. Optionaly you can use the “post_id” parameter with this short code. As example,
[sdcp_show_creation_date post_id=2]

Using Gosuslugi

Go to the Gosuslugi signature verification page: https://e-trust.gosuslugi.ru/check/sign#/portal/sig-check
Upload the file with the attached signature.
The service will verify the signature and display the result.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Sign Documents with Crypto Pro」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 |

延伸相關外掛(你可能也想知道)

  • AXP Cyrillic to Latin 》將文章網址中的西里爾字母轉換為拉丁字母, 標準, , GOST 16876-71, BSI, BGN, Yandex, 。
  • CriptaPro Auth 》Plugin for authorization on WordPress site using CryptoPro digital signature. For questions, contact Telegram: @ddnitecry, English, The plugin allo...。

文章
Filter
Apply Filters
Mastodon