ovpn-key 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8dc2ed89356336d073903adcf02042627a96a9e17121a8bc92a9895dc49619dc
4
- data.tar.gz: f43642cede6402d002d253e15907ec77399857701c2e58fa92d89247a94cee25
3
+ metadata.gz: 8e55a6629bd6199115250af3637c3152c9ac8f32278eb07eeb3e2e7f30f31194
4
+ data.tar.gz: f7ca28d7163011e4bb1a39b3aa4ed8937d3ec11713413344fec50d62dd3a94db
5
5
  SHA512:
6
- metadata.gz: ff92f8688ede4fd4fa0825e9775e73b7dfae4007585a2884d7e991b1237e3b24b89e979f76278476758cdf3464cca750b2236f93853c3129683608bc1099ab8f
7
- data.tar.gz: 94aabcd73b590ff2ed9a20d9ecf7b39899d25339353b81c868e9390dd17ca1a44ac1f5b6de9cc92e8dcbb55b8e4a7299288b20268504e4b9f2ced9a26364c881
6
+ metadata.gz: 564fcb6594ecef6f3c69db102f71bb6574680c4719a9bd769601689d51668c24abff77e6f5d28563861f206862e7bf9c506f238c2673de7df46d16767e85a1cc
7
+ data.tar.gz: 5180294d367223ff7c9cb3d7cc4c98338d3c82f4f7ed778e3b22235e85a656dcaa577257f06c7883b999cd65f2d92c5730d6d97e0480ea71961a2b6d083f8ae0
data/README.md CHANGED
@@ -100,23 +100,11 @@ key_type: secp521r1
100
100
  digest: SHA512
101
101
  ```
102
102
 
103
- #### NIST P-256, the fastest
104
- ```yaml
105
- key_type: secp256r1
106
- digest: SHA256
107
- ```
108
-
109
- #### ed25519, least compatible
110
- ```yaml
111
- key_type: ed25519
112
- #digest: not used
113
- ```
114
-
115
103
  #### RSA 3K, a compromise if you still require RSA
116
104
  ```yaml
117
105
  #key_type: # commented out
118
106
  key_size: 3072
119
- digest: SHA256
107
+ digest: SHA384
120
108
  ```
121
109
 
122
110
  #### RSA 4K, the slowest
@@ -126,9 +114,15 @@ key_size: 4096
126
114
  digest: SHA384
127
115
  ```
128
116
 
129
- Note: your configuration might still use the 2K RSA, this will work, but we recommend to phase out those deployments,
117
+ ### Configurations to avoid
118
+
119
+ 1. You might have an old configuration that still uses the `2K RSA`, this will work, but we recommend to phase out those deployments,
130
120
  as they're currently under NIST baseline.
131
121
 
122
+ 2. `ed25519` and `secp256r1` can be used as a `key_type`, but also not recommended (don't satisfy CNSA 1.0 baseline).
123
+
124
+ 3. `SHA256` is under CNSA 1.0 baseline, so also not adviced.
125
+
132
126
  ### Mixed mode
133
127
 
134
128
  You can start your CA as RSA and generate newer keys in ECC.
data/bin/ovpn-key CHANGED
@@ -180,7 +180,7 @@ if options[:generate_ca]
180
180
  end
181
181
  if options[:generate_dh]
182
182
  File.open('dh.pem', 'w') do |f|
183
- warn 'Generating dh.pem. This will take a while'
183
+ $stderr.print 'Generating dh.pem. This will take a while'
184
184
  f.write OpenSSL::PKey::DH.new(KEY_SIZE)
185
185
  warn '. Done'
186
186
  end
@@ -2,7 +2,7 @@ openvpn: openvpn # openvpn executable, required only for --static
2
2
  zip_dir: '~' # directory for files generated by --zip
3
3
 
4
4
  encrypt: AES256
5
- digest: SHA384 # change this to 256 if using sub-4k RSA keys or P-256
5
+ digest: SHA384
6
6
  key_type: secp384r1 # comment this out if you want to use RSA keys
7
7
  key_size: 3072 # RSA and DH keys only
8
8
 
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ovpn-key
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasily Korytov