More > Configuration Manager > Appendixes > Utilities > Password Encryption

Password Encryption

To encrypt a password:

  1. Ensure that your Configuration Manager installation directory contains a security directory that includes the following file:

    encrypt_security

    This file is created during the installation process. However if this file does not exist, then run the following in the <Configuration_Manager_installation_directory>\bin directory:

    generate-keys.bat
    
  2. Run the following command:

    <Configuration_Manager_installation_directory>\bin\encrypt-password <options>
    

    The command line <options> can be:

    Option Description

    -p <password>

    --password <password>

    Encrypt a single plain-text password.

    -d <folder>

    --dir <folder>

    Use the encryption keys located at the specified path. If this option is not specified, the default key location is <cm-installation>\security, which is where the Generate Keys utility creates the private and public key.

    -h

    --help

    Print this message.

    For example, to encrypt a single password, run the following:

    EncryptPassword.bat -p <password to encrypt>
    
  3. Copy and paste the generated encrypted password ({ENCRYPTED} <encrypted password>) into the appropriate Configuration Manager configuration file.