Skip to content

Add helpers to insert XML or text into a signature template - #124

Open
adamdecaf wants to merge 1 commit into
masterfrom
feat/signature-template-helpers
Open

Add helpers to insert XML or text into a signature template#124
adamdecaf wants to merge 1 commit into
masterfrom
feat/signature-template-helpers

Conversation

@adamdecaf

Copy link
Copy Markdown
Member

What

Adds convenience helpers for assembling enveloped signatures:

  • InsertXMLintoSignatureTemplate — nest a document under the first <Object>
  • InsertTextIntoSignatureTemplate — set that object's text
  • PrepPKCS8PrivateKey — decode a PEM PKCS Fix golint import path #8 key for Signer.Sign

Source

Cherry-picked from daugminas:

Comments were translated to English to match the rest of the package. PrepPKCS8PrivateKey now errors on invalid PEM instead of panicking.

Tests

go test . passes.

Adds InsertXMLintoSignatureTemplate, InsertTextIntoSignatureTemplate,
and PrepPKCS8PrivateKey for assembling enveloped signatures.

Cherry-picked from daugminas/signedxml@4f7152f and @cf137e6.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants