Pular para o conteúdo principal

Using PKI Express on Ruby

PKI Express can be used on Ruby. To get started, see the Ruby on Rails samples project.

Client library​

To use PKI Express on Ruby applications, use our Ruby Gem pki_express by declaring on your Gemfile:

gem 'pki_express', '~> 1.3.2'

After that, do a bundle install to download the gem and its dependencies (if you don't have Bundler installed, get it here)

Alternatively, you can install the gem directly on command-line:

gem install pki_express
note

Versions 1.3.2 and earlier of the gem call File.exists?, which Ruby 3.2 removed. On Ruby 3.2 or later, restore that method before the first call to PKI Express, for instance in an initializer, as the Rails samples project does:

File.singleton_class.send(:alias_method, :exists?, :exist?) unless File.respond_to?(:exists?)

The gem is open-source, hosted on GitHub. Feel free to fork it if you need to make any customizations.

View as Markdown