Client.createPrivateKey()
DESCRIPTION
Create a private key and return the private key as a pem encoded string.
The result is normally stored in a device specific secure location and retrieved whenever a new connection is established, passed on to a Connection object using setPrivateKey()
.
DECLARATION
public func createPrivateKey() throws -> String
THROWS ERRORS
NabtoEdgeClientError.FAILED:
- if key could not be created
RETURNS
the private key as a pem encoded string.