Function __global->generate_site_telemetry_key_pair

Definitions

sources/telemetry.php

  • Generate a site key-pair for use in signing messages to the homesite telemetry service.This function will always overwrite existing public and private keys, so use with care!
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Returns

  • Public key, private key, signing public key, signing private key (null: error saving the keys)
  • Type: ?array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Generate a site key-pair for use in signing messages to the homesite telemetry service.This function will always overwrite existing public and private keys, so use with care!
 *
 * @return ?array Public key, private key, signing public key, signing private key (null: error saving the keys)
 */

function generate_site_telemetry_key_pair() : ?array