# Sign a PDF in Ruby with a .p12 file

**URL:** <https://www.ruby-forum.com/t/sign-a-pdf-in-ruby-with-a-p12-file/262095>\
**Category:** Uncategorized\
**Tags:** ruby-gnome, job\
**Created:** [November 15, 2021, 3:21pm UTC](https://www.ruby-forum.com/t/sign-a-pdf-in-ruby-with-a-p12-file/262095 "2021-11-15T15:21:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drodrigueza7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f9ae1b/32.png) [@drodrigueza7](https://www.ruby-forum.com/u/drodrigueza7)\
**Post date:** [November 15, 2021, 3:21pm UTC](https://www.ruby-forum.com/t/sign-a-pdf-in-ruby-with-a-p12-file/262095/1 "2021-11-15T15:21:18Z")

</div>

I need to SIGN a PDF with a .p12 file, the problem is that I need to define keyUsage to sign, but, with the ORIGAMI library I can’t use some codes that I find on the internet. Any idea how to do it?
