You can use an existing Postgres server (version 9.3 or later) to host the PEM server and the pem database. Postgres installers and pre-requisite software extensions are freely available from the EnterpriseDB website at:This section provides information about configuring an existing Postgres server for a PEM server installation. Please note that the steps that follow should be considered guidelines only; the actual steps required to configure your Postgres installation will vary depending on the configuration of your Postgres server.The following versions of Postgres are pre-configured to contain the sslutils extension and a service script; no additional preparation is required to use the following Postgres versions as a PEM backend database server:188.8.131.52 Preparing the Postgres Server
• Ensure that the Postgres server contains an installation of the sslutils extension. For more information, see Section 184.108.40.206.1.
• After preparing the server, you can use the PEM server installer to install PEM on the existing Postgres server.220.127.116.11.1 Installing the sslutils ExtensionThe Postgres server on which the PEM server will reside must contain the sslutils extension. The sslutils package is freely available for download from the EnterpriseDB website at:When the web page opens, select the link for the SRC- SSL Utils 1.2 package. When the download completes, extract the file, and copy it into the Postgres installation directory.
2. Set the value of PATH so it can locate the pg_config program:export PATH=$PATH:/opt/postgres_inst_dir/9.x/bin/
3. Then, use yum to install the sslutil dependencies:
4. Move into the sslutils folder, and enter:Remember: You are not required to manually add the sslutils extension when using the following Postgres installations:sslutils must be built with the same compiler that was used to compile the backend Postgres installation. If you are using a backend Postgres database that was installed on a Windows platform using a PostgreSQL one-click installer (from EnterpriseDB) or an Advanced Server installer, you must use Visual Studio to build sslutils.While specific details of the installation process will vary by platform and compiler, the basic steps are the same. You must:
1. Copy the sslutils package to the Postgres installation directory.
2. Open the command line of the appropriate compiler, and navigate into the sslutils directory.
3. Use the following commands to build sslutils:SET USE_PGXS=1
REM Set ARCH x64 for 64 bit
msbuild sslutils.proj /p:Configuration=Releasepath_to_gettext specifies the location of the GETTEXT library and header files.path_to_openssl specifies the location of the openssl library and header files.path_to_pg_installation_dir specifies the location of the Postgres installation.
4. Copy the compiled sslutils files to the appropriate directory for your installation. The sslutils directory will contain the following files:Copy the .dll libraries and .sql files into place:A service script allows the PEM server to start, stop or restart the server if necessary when performing configuration management, certificate management, or other administrative tasks.When you install a PostgreSQL or an Advanced Server database using an installer from EnterpriseDB (such as the PostgreSQL one-click installer), the installer will create a service script, or on Windows, register the service for you. If you have built the Postgres installation from source, you are required to manually create a service script.While the PEM server installer checks for the presence of the service script, it does not check the integrity of the script itself; for PEM to function properly, you must ensure that the service script works as expected.On Linux, the service script must reside in the /etc/init.d directory. The service script must be able to start, stop and restart the database server. Service scripts are platform-specific; you can find a sample service script for Linux in Section 7 Linux Service Script (Sample). For information about customizing a Postgres service, visit:If you are using Windows to host the PEM backend database, you must register the name of the Postgres server with the Windows service manager. If you are using a Postgres server that was created using an EnterpriseDB installer, the service will be registered automatically. If you are manually building the installation, you can use the register clause of the Postgres pg_ctl command to register the service. The syntax of the command is:pg_ctl register [-N service_name] [-U user_name]
[-P password] [-D data_directory]service_name specifies the name of the Postgres cluster.user_name specifies the name of an operating system user with sufficient privileges to access the Postgres installation directory and start the Postgres service.password specifies the operating system password associated with the user.data_directory specifies the location of the Postgres data directory.For more information about using the pg_ctl command and the available command options, see the Postgres core documentation, available at: