Certificates

Use the certificate service to obtain the application certificates for accessing the MQTT server for notifications. In order to use this service, you must first obtain an access token with your application key and secret. Click here for further details on getting started.

Request URIs

POST /notifications/certificates

There are no parameters to be added to this POST request. A "certificate" resource will be created for your Application Key. If there is already a Certificate created for your Application Key, the existing Certificate will be deleted and a new one will be created for you.

Request Examples

POST /notifcations/certificates

Response Structure Definition

CertificateManagement Root Resource
. certificatePem
Your PEM encoded certificate
. keyPair
.. PublicKey Your public key
.. PrivateKey Your private key
. certificateId A unique ID of your certificate
. endpoint The URI of Lufthansa's MQTT Server

Response Example

Code snippet: XML

<?xml version="1.0" encoding="UTF-8"?>
<CertificateManagementResource>
  <CertificateManagement>
    <certificatePem>-----BEGIN CERTIFICATE-----

MIIDWjCCAkKgAwIBAgIVAImeiupUWnCJt1pFu09ADtXsGG4eMA0GCSqGSIb3DQEB

H3+slohR9ExvdWmRhDjowhRIhq3m0lp/MGHLmIWeoxO+w1tW9H3+WzT5TQcPGw==

-----END CERTIFICATE-----<

</certificatePem> <keyPair> <PublicKey>-----BEGIN PUBLIC KEY-----

MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAq2BRMhREl8rxJXXrOG36

wKG0X/1kQAtKDZbiJmb+zOXrx9nZaMu2jDYod6OHKWjQnF/Ujn8AvSDgJc6QYmc+

2QIDAQAB

-----END PUBLIC KEY-----

</PublicKey> <PrivateKey>-----BEGIN RSA PRIVATE KEY-----

MIIEpQIBAAKCAQEAq2BRMhREl8rxJXXrOG366Kke/a5ViVpQ2zF2zuBZj0XqNPB5

sM7582s3HuJ9kFLIiMvaBVpJZ7z6gHWfShy+HtGziof6vDQUOs1sekQ=

-----END RSA PRIVATE KEY-----

</PrivateKey> </keyPair> <certificateId>43a8……….44aa6f8b46c91</certificateId> <endpoint>a35ixnrwyoljwq.iot.eu-central-1.amazonaws.com</endpoint> </CertificateManagement> </CertificateManagementResource>