Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elcuervo/firma
Adds a secure signature to pdf
https://github.com/elcuervo/firma
Last synced: 22 days ago
JSON representation
Adds a secure signature to pdf
- Host: GitHub
- URL: https://github.com/elcuervo/firma
- Owner: elcuervo
- License: mit
- Created: 2012-10-02T02:49:57.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-10-02T03:21:30.000Z (over 12 years ago)
- Last Synced: 2024-12-15T11:32:33.569Z (26 days ago)
- Language: Ruby
- Size: 508 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Firma
![](http://www.duhaime.org/Portals/duhaime/images/Copperman-signature.jpg)Add a secure signature to a pdf file.
## Installation
```bash
gem install firma
```## Check if a pdf it's signed
```ruby
require "firma"Firma.is_signed?("my_file.pdf")
```## Sign a pdf file
```ruby
require "firma"Firma.sign("my_file.pdf",
key: "key.pem",
passphrase: "passphrase",
certificate: "key.crt"
)
```## Sign a pdf file with newly generated certificates
```ruby
require "firma"keys = Firma.generate_keys("passphrase")
Firma.sign("my_file.pdf",
key: keys.fetch(:key),
passphrase: "passphrase",
certificate: keys.fetch(:certificate)
)
```