Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
duniter
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engélibert
duniter
Commits
8f6167dd
Commit
8f6167dd
authored
11 years ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
Details HTTP API: pks
parent
04732769
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
doc/NCTP.md
+44
-4
44 additions, 4 deletions
doc/NCTP.md
with
44 additions
and
4 deletions
doc/NCTP.md
+
44
−
4
View file @
8f6167dd
...
@@ -100,10 +100,50 @@ Parameter | Description
...
@@ -100,10 +100,50 @@ Parameter | Description
This URL is used to manage OpenPGP certificates, making NodeCoin acting
**like**
an SKS server.
This URL is used to manage OpenPGP certificates, making NodeCoin acting
**like**
an SKS server.
URL | Description
#### `pks/add`
--- | -----------
**Goal**
`add`
| allows to POST ASCII-ARMORED OpenPGP certificates.
`lookup`
| allows to search for OpenPGP certificates, according to
[
HKP draft
](
http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-3
)
.
POST ASCII-armored OpenPGP certificates.
**Parameters**
Name | Value | Method
---- | ----- | ------
`keytext`
| The raw certificate, ASCII-armored. | POST
`keysign`
| The raw signature of the
`keytext`
value. | POST
**Returns**
The sent PGP Public Key and signature.
```
js
{
"
signature
"
:
"
-----BEGIN PGP SIGNATURE ... END PGP SIGNATURE-----
"
,
"
key
"
:
{
"
email
"
:
"
cem.moreau@gmail.com
"
,
"
comment
"
:
"
udid2;c;CAT;LOL;2000-04-19;e+43.70-079.42;0;
"
,
"
name
"
:
"
LoL Cat
"
,
"
fingerprint
"
:
"
C73882B64B7E72237A2F460CE9CAB76D19A8651E
"
,
"
raw
"
:
"
-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----
\r\n
"
}
}
```
#### `pks/lookup`
**Goal**
Allows to search for OpenPGP certificates, according to
[
HKP draft
](
http://tools.ietf.org/html/draft-shaw-openpgp-hkp-00#page-3
)
.
**Parameters**
Name | Value | Method
---- | ----- | ------
`search`
| A value for searching in PGP certificates database. May start with '0x' for direct search on PGP fingerprint. | GET
`op`
| Operation: may be either 'index' or 'get'. | GET
**Returns**
Result differs according to parameters and is HKP-compliant.
### hdc/*
### hdc/*
...
...
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