In this and the following Chapter we are going to talk about adding Security to your Applications. For each domain, assigned to one of your Application you can also provide an SSL certificate for secured traffic to your service. Starting point are your personal Private Keys which are managed per account.
For a new privat key, all you need is a unique name. If you do not specify a key, an RSA2048 key will automatically be generated. Use the URL provided as the relation privatekeys from our root endpoint.
$ curl -i -u demo:demo -X POST -H "Content-Type: application/json" https://d9tready.com/rest/privatekeys -d '{"name": "MyPrivateKey"}'
HTTP/1.0 201 CREATED
Date: Mon, 01 Sep 2014 12:10:36 GMT
Server: WSGIServer/0.1 Python/2.7.6
Vary: Accept, Accept-Language, Cookie
Content-Language: en
Location: https://d9tready.com/rest/privatekeys/1
Allow: GET, POST, HEAD, OPTIONS
The request above created a new privatekey resource. Watch for the Location inside the response for the URL to the new resource.
coming soon... (see PrivateKey Resource in our REST API Documentation until then)
coming soon... (see PrivateKey Resource in our REST API Documentation until then)