anchor-rb 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/anchor.rb +17 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 925f36296087c586fd708197421808eb4d15c589bf12d0012329c27892b4fbb8
|
4
|
+
data.tar.gz: 7dc5f6a98d41999ada5105046dedbd9600106ae24416abec1eb5ae564d901886
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 30f72991dad909edb159fc5d387f9ac3cfda0ebb756861e0952c6bffd97d668a2f46c5b2ac695981ae4a18ff2a9e32d50399fee1b24e93aff2274c5417cbf094
|
7
|
+
data.tar.gz: e7364a98100f9531604be3279860874aa7b26c0ceb83a54f5d27f9f85c590742f7fae6fb67f406ea032bd15cc128fc4fb72af97f785f4f7a2774d323ce22e22a
|
data/lib/anchor.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'openssl'
|
4
|
+
|
5
|
+
module Anchor
|
6
|
+
def self.add_cert(pem)
|
7
|
+
(@certs ||= []) << OpenSSL::X509::Certificate.new(pem)
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.cert_store
|
11
|
+
@ssl_cert_store ||= OpenSSL::X509::Store.new.tap do |store|
|
12
|
+
(@certs || []).each do |cert|
|
13
|
+
store.add_cert(cert)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: anchor-rb
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Anchor
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-11-05 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Anchor is a hosted PKI platform for your internal organization.
|
14
|
+
email: support@anchor.dev
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/anchor.rb
|
20
|
+
homepage: https://anchor.dev/
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.2.30
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: Ruby client for Anchor PKI. See https://anchor.dev/ for details.
|
43
|
+
test_files: []
|