Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
b169ec7f
Commit
b169ec7f
authored
Jul 27, 2018
by
Dylan Griffith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand ca -> certificate_authority in Helm::Certificate
parent
c7360d13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/kubernetes/helm/certificate.rb
lib/gitlab/kubernetes/helm/certificate.rb
+4
-4
No files found.
lib/gitlab/kubernetes/helm/certificate.rb
View file @
b169ec7f
...
...
@@ -22,16 +22,16 @@ module Gitlab
end
def
self
.
generate_root
_issue
(
signed_by:
nil
,
expires_in:
INFINITE_EXPIRY
,
c
a
:
true
)
_issue
(
signed_by:
nil
,
expires_in:
INFINITE_EXPIRY
,
c
ertificate_authority
:
true
)
end
def
issue
(
expires_in:
SHORT_EXPIRY
)
self
.
class
.
_issue
(
signed_by:
self
,
expires_in:
expires_in
,
c
a
:
false
)
self
.
class
.
_issue
(
signed_by:
self
,
expires_in:
expires_in
,
c
ertificate_authority
:
false
)
end
private
def
self
.
_issue
(
signed_by
:,
expires_in
:,
c
a
:)
def
self
.
_issue
(
signed_by
:,
expires_in
:,
c
ertificate_authority
:)
key
=
OpenSSL
::
PKey
::
RSA
.
new
(
4096
)
public_key
=
key
.
public_key
...
...
@@ -48,7 +48,7 @@ module Gitlab
cert
.
serial
=
0x0
cert
.
version
=
2
if
c
a
if
c
ertificate_authority
extension_factory
=
OpenSSL
::
X509
::
ExtensionFactory
.
new
extension_factory
.
subject_certificate
=
cert
extension_factory
.
issuer_certificate
=
cert
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment