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
3
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
d0a945fa
Commit
d0a945fa
authored
4 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
[*] Fix script creation certificate.
parent
bccfdbb9
No related branches found
Branches containing commit
No related tags found
1 merge request
!43
Support 4552
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dists/examples/1.Authority/MyAuthCA.py
+7
-4
7 additions, 4 deletions
dists/examples/1.Authority/MyAuthCA.py
with
7 additions
and
4 deletions
dists/examples/1.Authority/MyAuthCA.py
+
7
−
4
View file @
d0a945fa
...
...
@@ -3,6 +3,7 @@ from CellFrame import init, Cert, CryptoKeyType
# from string import Template
# import os
import
sys
import
os
import
json
import
MyAuthConf
import
random
...
...
@@ -96,13 +97,15 @@ elif action == "init_root_ca":
print
(
"
(!) Wrong algo name
\"
"
+
rootCaAlgoName
+
"
\"
, possible names: sig_bliss, sig_tesla, sig_picnic, sig_dil
"
)
help
()
exit
(
-
1
)
# Create certs
print
(
"
Init root
"
+
str
(
rootCaNumber
)
+
"
certificates with algo
"
+
rootCaAlgoName
)
print
(
"
Record somewhere the restore string(without braces):
\"
"
+
restoreString
+
"
\"
"
)
for
cur
in
range
(
int
(
rootCaNumber
)):
cname
=
MyAuthConf
.
getNetworkName
(
appName
,
"
_
"
)
+
"
_root_
"
+
str
(
cur
)
cert
=
Cert
.
generate
(
cname
,
rootCaAlgo
,
restoreString
)
cert
.
save
()
cname
=
MyAuthConf
.
getNetworkName
(
appName
,
"
-
"
)
+
"
.root.
"
+
str
(
cur
)
Cert
.
folderAdd
(
os
.
getcwd
()
+
"
/var/lib/ca/
"
)
certobject
=
Cert
.
generate
(
cname
,
rootCaAlgo
,
restoreString
)
dir
(
certobject
)
certobject
.
save
()
print
(
"
Save certificate
"
)
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