Last active
August 29, 2015 13:56
-
-
Save jfwood/9080109 to your computer and use it in GitHub Desktop.
Barbican orders API blueprint discussion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This schema would replace the current order schema below. | |
Schema for generating an 'asymmetric' type, which includes RSA key-pair generation. | |
POST v1/{tenant_id}/orders | |
{ | |
"type": "asymmetric", | |
"meta": { | |
"name": "container-name", | |
"algorithm": "RSA", | |
"bit_length": 4096, | |
"passphrase": "optional" | |
} | |
} | |
{ | |
"type": "asymmetric", | |
"meta": { | |
"name": "container-name", | |
"algorithm": "EC", | |
"curve_name": "secp384r1", | |
"passphrase": "optional" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This would replace the current order schema above. | |
Schema for generating an 'cert' type, which includes SSL certification request processing. | |
POST v1/{tenant_id}/orders | |
{ | |
"type": "cert", | |
"meta": { | |
TBD...could include items such as: | |
bit-length and passphrase for RSA key, what cert type, duration, etc... | |
...OR...could provide the CSR PEM-encoded. | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST v1/{tenant_id}/orders | |
{ | |
"secret": { | |
"name": "secretname", | |
"algorithm": "AES", | |
"bit_length": 256, | |
"mode": "cbc", | |
"payload_content_type": "application/octet-stream" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This would replace the current order schema above. | |
Schema for generating a 'Key' type, which includes AES key generation. | |
POST v1/{tenant_id}/orders | |
{ | |
"type": "key", | |
"meta": { | |
"name": "secretname", | |
"algorithm": "AES", | |
"bit_length": 256, | |
"mode": "cbc" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment