使用 IRONSECUREDOC PDF 簽名服務器(開發者教程) Curtis Chau 更新日期:6月 22, 2025 Download IronSecureDoc 免費下載 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article Digital signatures are among the cryptographic techniques that ensure digital documents' source, integrity, and non-replication. In most cases, it is rather quite different from conventional forms of handwritten signatures where advanced encryption techniques secure the document and verify the identity of the signer. Applied to a PDF, a digital signature creates an electronic "seal," which looks like a certificate identifying a document as unaltered since it was signed. This seal details an encryption system bearing a mathematical algorithm that encodes signature data onto the document. Digital signatures allow for an immutable log of changes to be kept with the document, besides identifying the signing party. In this article, we are going to create a PDF Signer server with the help of IronSecureDoc. How to Use the PDF Signer Server Install the IronSecureDoc docker image. Run the docker image with a specific port and license key. Initialize IronSecureDoc Client with a .NET application. Get the URL and pass it into the IronSecureDoc Client while creating the object. Pass the required parameter into the IronSecureDoc Client API. Get the processed PDF documents and save them into the location. What is IronSecureDoc? IronSoftware's IronSecureDoc is the omnipotent solution for document security. This would protect against leakage of sensitive information through various formats of documents. It supports state-of-the-art encryption methods to secure documents from unauthorized access so that only readers or editors designated have the mandate to view or modify them. It also supports digital signatures, identifying a document maker as authorized and ensuring that its content is not tampered with since signing. Besides, it provides secure document sharing and maintenance with control over how they are circulated and whom it is shared with. IronSecureDoc embeds these features to help organizations and individuals maintain compliance with data protection and prevent data breaches. The relevance of this very user-friendly interface, with a set of security features, makes it very relevant software to any business willing to offer a higher level of security when sharing documents. Features of IronSecureDoc IronSecureDoc is provided with a plethora of features to enhance the security of the documents and keep them intact. Some of its key features include: Advanced Encryption: This feature helps to protect documents against unauthorized eyeballs, therefore securing information secrecy through tough and strong algorithms of encryption. Digital Signatures: This property testifies to the fact that digital signatures may be attached to any document for assertions that it is original and not altered since signing, but also who has signed it. Safe Sharing: Share documents safely and specify persons authorized to view and even engage with them. It detects unauthorized changes or tampering to a document and therefore helps safeguard the integrity of the document. Compliance: This brings organizations into compliance with numerous regulations on protection and industry standards by assuring the safe handling and transmission of documents. Ease of Use: It provides easy access through its user-friendly interface in handling security features and document settings. Audit Trails: It creates trails of history for access and modification, hence allowing transparency and accountability. Install IronSecureDoc Docker Image Installing and running an IronSecureDoc Docker image is easy. Here's how you might do it: Install Docker First of all, make sure Docker is installed on your system. You can download Docker from Docker's official website and follow the installation instructions there for your operating system. Pull the IronSecureDoc Docker Image Open a terminal or a Command Prompt and execute this command to pull the IronSecureDoc Docker image from the repository. docker pull ironsoftwareofficial/ironsecuredoc docker pull ironsoftwareofficial/ironsecuredoc SHELL Run the Docker Container After the image has been pulled, the below command should start a new container. You can customize the -p flag for port mapping or the --rm used to remove one or more running Docker containers from the Docker host. docker container run --rm -p 8080:8080 -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> -e ENVIRONMENT=Development -e HTTP_PORTS=8080 ironsoftwareofficial/ironsecuredoc:latest docker container run --rm -p 8080:8080 -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> -e ENVIRONMENT=Development -e HTTP_PORTS=8080 ironsoftwareofficial/ironsecuredoc:latest SHELL In the example above, map the host's port 8080 to the container's and assign a name to the created container in IronSecureDoc. Once the command is executed, it will display as below. Once they start to run, you can access the list of APIs provided by the IronSecureDoc through the browser (http://localhost:8080/swagger/index.html) or any application connectivity. Create a New Visual Studio Project Visual Studio makes it very widely and easily possible to develop console projects. Below are a few simple steps to help you get started on a Console Application in the environment of Visual Studio. Before you can use Visual Studio, be sure you have installed it on your computer. Start a New Project: After choosing File, Project, select the New menu. Please select "Console App" or "Console App (.NET Core)" from the list of available project template references below. To give your project a name, fill out the "Name" field. Select the location for your project. Click "Create" to open the Console Application project. What is IronSoftware.SecureDoc.Client? IronSoftware.SecureDoc.Client Library is easy integration into your existing .NET applications to leverage what IronSecureDoc has to offer in PDF encryption, redaction, and digital signing through easy REST API calls. Developers can easily secure documents in their applications with integrity guaranteed using IronSoftware.SecureDoc.Client library, all operations are kept on-site for high protection of data. Whether it be for redacting sensitive information, certifying document signing, or enforcing document encryption, IronSoftware.SecureDoc.Client has the tools to do all these tasks efficiently and securely. Install IronSoftware.SecureDoc.Client First, run the installation of the IronSoftware.SecureDoc.Client library since the upcoming patch depends on it. Finally, to complete this, open the NuGet Package Manager Console and execute the following command: Install-Package IronSoftware.SecureDoc.Client You can also search for the package "IronSoftware.SecureDoc.Client" in the NuGet Package Manager. Choose from the list of all NuGet packages related to IronSoftware.SecureDoc.Client which one has to be downloaded. Create a self-signed digital ID Sensitive business transactions typically will ask for an ID from a certificate authority, not a self-signed one. In Adobe Acrobat, click the hamburger menu (Windows) or Acrobat menu (macOS), then select Preferences. In the left-hand Categories list, select Signatures. On the right, click More next to Identities & Trusted Certificates. On the left, select Digital IDs, then click the Add ID button. Add a new digital ID Now select the radio button option "A new digital ID I want to create now" and then click Next. Create a new digital ID Point where to save the digital ID and then click Next. New PKCS#12 Digital ID File Save Digital ID information in a .pfx file in Windows and .p12 in macOS. You can transport these files across operating systems and use them with Acrobat. If you copy a document to another operating system, Acrobat will continue using it. Save the digital ID to a common store where other Windows applications can also access it. PKCS-digital-id In the field for your digital ID, type your name, email address, and other personal information; this is what will display inside the Signature box and inside the Signatures panel when you Sign or Certify a document. Do the following: Select an item from the Key Algorithm drop-down list. From a security standpoint, a 2048-bit RSA is more secure than a 1024-bit RSA. But 1024-bit RSA is more compatible with more devices. In the Use digital ID For menu, you can specify whether to use the digital ID for either Encryption, Digital Signature, or both. Click Next. Enter your identity information Type a password for the digital ID file. As you type, the password strength meter assesses your password and displays the password strength with color patterns. Confirm your password. The default location indicated in the File Name box will be where the digital ID file is kept. Click Browse and choose a different place to save to. Select "Finish." Enter a password for your ID. If a digital ID file shares the same name, you will be asked to replace it. Click OK to replace, or click Browse and select a different location to store the file. Now an ID has been created. You can export the certificate file to send to contacts so they can use it in order to verify your signature. Sign a PDF Document with IronSecureDoc Below is the sample code that will help us digitally sign the PDF document with the certificate file. using IronSecureDoc; Console.WriteLine("File Process started"); // Initialize the IronSecureDocClient with the URL of the locally hosted service var client = new IronSecureDocClient("http://localhost:8080"); // Asynchronously attempt to connect to the IronSecureDoc service if (await client.TryConnectAsync()) { // If connection is successful, certify the PDF document using the provided certificate var result = await client.CertifyAsync("Demo.pdf", "DemoSign.pfx", "Your certificate password here"); // Save the signed PDF document to a new file File.WriteAllBytes("certify.pdf", result); } Console.WriteLine("File Process completed"); // Wait for user input before closing the console window, allowing the user to see the completion message Console.ReadKey(); using IronSecureDoc; Console.WriteLine("File Process started"); // Initialize the IronSecureDocClient with the URL of the locally hosted service var client = new IronSecureDocClient("http://localhost:8080"); // Asynchronously attempt to connect to the IronSecureDoc service if (await client.TryConnectAsync()) { // If connection is successful, certify the PDF document using the provided certificate var result = await client.CertifyAsync("Demo.pdf", "DemoSign.pfx", "Your certificate password here"); // Save the signed PDF document to a new file File.WriteAllBytes("certify.pdf", result); } Console.WriteLine("File Process completed"); // Wait for user input before closing the console window, allowing the user to see the completion message Console.ReadKey(); Imports IronSecureDoc Console.WriteLine("File Process started") ' Initialize the IronSecureDocClient with the URL of the locally hosted service Dim client = New IronSecureDocClient("http://localhost:8080") ' Asynchronously attempt to connect to the IronSecureDoc service If Await client.TryConnectAsync() Then ' If connection is successful, certify the PDF document using the provided certificate Dim result = Await client.CertifyAsync("Demo.pdf", "DemoSign.pfx", "Your certificate password here") ' Save the signed PDF document to a new file File.WriteAllBytes("certify.pdf", result) End If Console.WriteLine("File Process completed") ' Wait for user input before closing the console window, allowing the user to see the completion message Console.ReadKey() $vbLabelText $csharpLabel The following code will first send a message to the console stating that it has begun processing files. Confirmed after that will be the creation of an IronSecureDocClient using the URL for a locally hosted IronSecureDoc service. Below is the sample PDF file. This function will next proceed to asynchronously attempt to connect to the service. Assuming everything connects properly, it will call CertifyAsync to actually sign the PDF document, passing the paths of the PDF file, the PDF signature certificate file, and the certificate password. The results of that represented as a byte array of the signed PDF, will then be saved in a new file called certify.pdf. This finally prints in the console that the file actually has been processed successfully, then it waits for the user's input before it closes the Console window. This holds up a console window to show the completion message to the user before the application exits. In the above processed file, the PDF document has been signed by the digital certificate. Conclusion IronSecureDoc is an integrated digital document security solution that ensures the tightest level of protection due to robust encryption and certification abilities. The IronSecureDoc client library allows users to easily add a digital signature to their documents for integrity and security standards. It has a simple API, making it easier to protect sensitive information inside documents. Thus, it's helpful for developers who want to provide advanced protection of documents in their web server applications. Be it for legal, financial, or even business purposes, IronSecureDoc is there to help by providing appropriate tools for data protection, authentication, and end-to-end tamper-evidence across documents' entire lifecycle. IronSecureDoc offers a free trial. To know more about the pricing, refer to the pricing page. Iron Software has a multiplicity of libraries, hence making the development of applications for many platforms and operating systems easier, such as Windows, Android, MAC, and Linux, among many others. 常見問題解答 我該如何創建一個PDF簽署伺服器? 您可以使用IronSecureDoc創建PDF簽署伺服器。首先安裝IronSecureDoc Docker映像,然後運行容器以設置伺服器。使用IronSecureDoc客戶端處理並應用PDF文檔的數字簽章。 使用IronSecureDoc部署PDF簽署伺服器涉及哪些步驟? 部署PDF簽署伺服器涉及安裝IronSecureDoc Docker映像,初始化IronSecureDoc客戶端,並使用它來應用PDF文檔的數字簽章。這可確保文檔的真實性和完整性。 如何在PDF文檔中添加數字簽章? 要在PDF文檔中添加數字簽章,請使用IronSecureDoc客戶端。用服務URL初始化客戶端,然後連接到服務並使用CertifyAsync方法。提供PDF文件的路徑、簽章證書和證書密碼。 使用IronSecureDoc進行數字簽章的優勢有哪些? IronSecureDoc提供高級加密和數字簽章以確保文檔的完整性和真實性。它提供安全的文件共享,符合數據保護法規,以及用戶友好的界面,對於需要高度安全的企業來說是理想之選。 IronSecureDoc能否幫助文檔安全合規問題? 是的,IronSecureDoc通過提供安全文件處理和傳輸來幫助實現數據保護法規合規,這幫助組織達到行業標準和防止數據洩漏。 安裝IronSecureDoc Docker映像的過程是什麼? 要安裝IronSecureDoc Docker映像,確保系統上已安裝Docker,然後執行命令docker pull ironsoftwareofficial/ironsecuredoc從倉庫中拉取映像。 我如何創建用于簽署PDF文檔的自簽數字ID? 您可以通過Adobe Acrobat中導航到偏好設置>簽名>身份和可信證書旁邊的更多來創建自簽數字ID。選擇數字ID,點擊添加ID,然後按照提示創建新的.pfx或.p12文件格式的數字ID。 什麼使IronSecureDoc適合商業和法律文件處理? IronSecureDoc適合商業和法律文件處理,因為它提供了強大的加密、數字簽章、審計跟蹤和用戶友好的界面。它確保了對未經授權訪問的保護並維護了文檔的完整性。 我可以在哪裡了解IronSecureDoc的定價信息? 您可以通過訪問他們的定價頁面獲取有關IronSecureDoc的更多定價信息:https://ironsoftware.com/enterprise/securedoc/licensing/。他們提供免費試用和不同定價選項的詳細信息。 數字簽章在文檔安全中的作用是什麼? 數字簽章在文檔安全中起著至關重要的作用,因為它提供了加密密封來驗證簽署者的身份,並確保文檔自簽署以來未被更改,因此保持其完整性和真實性。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 相關文章 更新日期 7月 22, 2025 immich Docker Compose(開發者如何工作) Immich Docker 是一個在 Docker 容器中設置的 Immich 自託管照片和影片備份解決方案。Docker 是一個輕量且被廣泛採用的平台,用於開發、分發 閱讀更多 更新日期 6月 22, 2025 Wazuh Docker Compose(開發者如何工作) Wazuh Docker 是 Wazuh 安全平台的 Docker 化部署,簡化並增強了安全監控、威脅檢測和合規管理的實施 閱讀更多 更新日期 6月 22, 2025 Coolify Docker Compose(開發者如何工作) Coolify 是一個開源且自託管的平台,旨在簡化應用程式、資料庫和網站的部署和管理。 閱讀更多 Docker 簽名 PDF(開發者教程)
更新日期 7月 22, 2025 immich Docker Compose(開發者如何工作) Immich Docker 是一個在 Docker 容器中設置的 Immich 自託管照片和影片備份解決方案。Docker 是一個輕量且被廣泛採用的平台,用於開發、分發 閱讀更多
更新日期 6月 22, 2025 Wazuh Docker Compose(開發者如何工作) Wazuh Docker 是 Wazuh 安全平台的 Docker 化部署,簡化並增強了安全監控、威脅檢測和合規管理的實施 閱讀更多