Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FIT-Connect Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FIT-Connect
FIT-Connect Tools
Commits
aac0b6fe
Commit
aac0b6fe
authored
3 years ago
by
David Schwarzmann
Browse files
Options
Downloads
Patches
Plain Diff
Update set-jwkset-gen.py
parent
291da207
Branches
feat/2-cli_tool
No related tags found
1 merge request
!1
Update set-jwkset-gen.py
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
set-jwkset-gen.py
+3
-2
3 additions, 2 deletions
set-jwkset-gen.py
with
3 additions
and
2 deletions
set-jwkset-gen.py
+
3
−
2
View file @
aac0b6fe
...
...
@@ -40,8 +40,9 @@ def create_jwk(output_dir):
privateKey_unwrapkey
=
jwk
.
JWK
.
from_json
(
privateKey_unwrapkey_str
)
#ergänze Public Key JSON um x5c Element
publicKey_verify
[
"
x5c
"
]
=
[
base64
.
urlsafe_b64encode
(
'
dummy
'
.
encode
(
'
UTF-8
'
)).
decode
(
'
utf-8
'
).
rstrip
(
"
=
"
)]
publicKey_wrapkey
[
"
x5c
"
]
=
[
base64
.
urlsafe_b64encode
(
'
dummy
'
.
encode
(
'
UTF-8
'
)).
decode
(
'
utf-8
'
).
rstrip
(
"
=
"
)]
# Auskommentiert, da dem Schlüssel aktuell kein Zertifikat zugrunde liegt und der Dummy Wert fehlerhaft ist bzw. bei der Verarbeitung nicht akzeptiert wird
# publicKey_verify["x5c"] = [base64.urlsafe_b64encode('dummy'.encode('UTF-8')).decode('utf-8').rstrip("=")]
# publicKey_wrapkey["x5c"] = [base64.urlsafe_b64encode('dummy'.encode('UTF-8')).decode('utf-8').rstrip("=")]
output_dir
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment