Skip to content

elcuervo/firma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Firma

Add a secure signature to a pdf file.

Installation

  gem install firma

Check if a pdf it's signed

  require "firma"

  Firma.is_signed?("my_file.pdf")

Sign a pdf file

  require "firma"

  Firma.sign("my_file.pdf",
    key: "key.pem",
    passphrase: "passphrase",
    certificate: "key.crt"
  )

Sign a pdf file with newly generated certificates

  require "firma"

  keys = Firma.generate_keys("passphrase")

  Firma.sign("my_file.pdf",
    key: keys.fetch(:key),
    passphrase: "passphrase",
    certificate: keys.fetch(:certificate)
  )

About

Adds a secure signature to pdf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages