JOC API

Version 2.2.0

Download RAML
JOC API
/profile/key/store
POST

stores a new Public Key, a Certificate or Private key (ASCII format only)


Parameters in the POST body schema

Name Type Description Example Default
keys required, object object can contain the following fields:
  • privateKey, string, optional
  • publicKey, string, optional
  • certificate, string, optional
  • keyAlgorithm, string, required
{
"keys" : {
"privateKey" : "-----BEGIN PGP PRIVATE KEY BLOCK-----\nVersion: BCPG v1.65\n\nlQO+BF6X8mMBCADJubBsqhEh8l/kY5Q3TwRn1ALceNVXJUnd9ERkD4/kox...",
"keyAlgorithm" : "PGP"
}
}
privateKey
optional, string Private Key (PGP, RSA, ECDSA)
"privateKey" : "-----BEGIN PGP PRIVATE KEY BLOCK-----\nVersion: BCPG v1.65\n\nlQO+BF6X8mMBCADJubBsqhEh8l/kY5Q3TwRn1ALceNVXJUnd9ERkD4/kox..."
publicKey
optional, string Public Key (PGP, RSA, ECDSA)
"publicKey" : "-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: BCPG v1.65\n\nmQENBF6X8mMBCADJubBsqhEh8l/kY5Q3TwRn1ALceNVXJUnd9ERkD4/kox..."
certificate
optional, string X.509 Certificate (only for RSA/ECDSA Private Keys)
"certificate" : "-----BEGIN CERTIFICATE-----\nMIIF2DCCA8CgAwIBAgIJAMxQSEdXten9MA0GCSqGS..."
keyAlgorithm
required, string key algorithm: PGP, RSA, ECDSA
"keyAlgorithm" : "RSA"
RSA
auditLog optional, object Object that contains comment, timeSpent and ticketLink. {
"comment":"Operational requirement!",
"timeSpent":2
}
comment optional, string Field in auditLog to comment this action, e.g. the reason.
timeSpent optional, integer Field in auditLog to enter the time spent in minutes. 5
ticketLink optional, string Field in auditLog to enter a link to a corresponding ticket.