Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
python-cellframe
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
1
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cellframe
python-cellframe
Commits
c67dd84c
Commit
c67dd84c
authored
4 years ago
by
Dmitriy A. Gerasimov
Browse files
Options
Downloads
Patches
Plain Diff
[*] Updated SDK
parent
b0deee01
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cellframe-sdk
+1
-1
1 addition, 1 deletion
cellframe-sdk
dists/examples/1.Authority/MyAuthCA.py
+4
-3
4 additions, 3 deletions
dists/examples/1.Authority/MyAuthCA.py
with
5 additions
and
4 deletions
cellframe-sdk
@
3cbb19cd
Compare
2d3cc18e
...
3cbb19cd
Subproject commit
2d3cc18ea3eb01369aa95e5de4d926d27e694c10
Subproject commit
3cbb19cd5483dfee7c1bb68bbe88027e2be9a282
This diff is collapsed.
Click to expand it.
dists/examples/1.Authority/MyAuthCA.py
+
4
−
3
View file @
c67dd84c
#!/usr/bin/python3
from
CellFrame
import
init
,
Cert
,
CryptoKeyType
from
string
import
Template
import
os
#
from string import Template
#
import os
import
sys
import
json
import
MyAuthConf
...
...
@@ -24,12 +24,13 @@ except json.decoder.JSONDecodeError as jex:
exit
(
-
1
)
# Produce random string
def
randomString
(
stringLength
=
10
):
"""
Generate a random string of fixed length
"""
letters
=
string
.
ascii_lowercase
return
''
.
join
(
random
.
choice
(
letters
)
for
i
in
range
(
stringLength
))
# Action Help
def
help
():
print
(
"
CA managment script usage:
"
)
...
...
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