Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
savoirfairelinux
jami-docs
Commits
fcb90363
Commit
fcb90363
authored
1 year ago
by
Xavier Jouslin de Noray
Committed by
Andreas Traczyk
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Certificate Commands: add commands to verify and manage CRL
Change-Id: Id7b19e056b1b455fd7c4669916df6417599b7473
parent
671da238
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
developer/jami-plugins-certificate.md
+20
-9
20 additions, 9 deletions
developer/jami-plugins-certificate.md
with
20 additions
and
9 deletions
developer/jami-plugins-certificate.md
+
20
−
9
View file @
fcb90363
...
@@ -145,23 +145,34 @@ python3 ./SDK/certKey.py --plugin sign --issuer <path-to-plugin-certificate>\
...
@@ -145,23 +145,34 @@ python3 ./SDK/certKey.py --plugin sign --issuer <path-to-plugin-certificate>\
## Revoked a certificate
## Revoked a certificate
###
Install dependencies
###
Create CRL
```
bash
```
bash
sudo
apt
install
openssl
python3 ./certKey.py crl create
--crl
--issuer
<path-to-ca>
--subject
crl <path-to-save-crl>
```
```
### Add Revoke certificate to CRL
### Add Revoke certificate to CRL
```
bash
```
bash
openssl ca
-revoke
<certificate-to-revoke>.crt
\
python3 ./certKey.py revoke
--crl
<path-to-crl>
--subject
<path-to-certificate-to-revoke>
--issuer
<path-to-ca>
[
--reason
REASON]
-keyfile
<private_key>
-cert
<issuer-certificate>.crt
```
## Verify certificate
### Verify certificate signing request
```
bash
python3 ./certKey.py
--req
[
--archive
]
verify
--path
<path-to-csr>
--issuer
<path-to-issuer>
```
### Verify certificate
```
bash
python3 ./certKey.py
[
--archive
]
verify
--path
<path-to-certificate>
--issuer
<path-to-issuer>
```
```
###
Update CRL file
###
Verify Jami Plugin
```
bash
```
bash
openssl ca
-gencrl
-keyfile
<private_key>
\
python3 ./certKey.py
[
--archive
]
verify
--path
<path-to-plugin>
-cert
<X.509 certificate>
-out
/etc/<CRL_directory>/temp.crt
&&
\
cat
<path-to-old-crt>/crl.crt /etc/<CRL_directory>/temp.crt
>
<path-to-crl-directory>/crl.crt
\
rm
-rf
/etc/<CRL_directory>/temp.crt <path-to-old-crt>/crl.crt
```
```
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