Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Table of Contents

Overview

 The purpose of this guide is to describe the environmental requirements and steps required to configure the Smartcrypt Enterprise Manager and associated Smartcrypt Application (Agent).

What you will need:

  1. A Windows Server to host the Smartcrypt Enterprise Manager. This server should be joined to an Active Directory domain.

  2. A SQL Server Database where Smartcrypt Enterprise Manager application data will live. Before installing you should obtain:

    1. Database server instance name

    2. Database name

    3. Database username with access to the above database

    4. Database user password

  3. An SSL certificate that matches the hostname you wish to use for the Smartcrypt Enterprise Manager 

  4. (optional) A DNS record for "pkwareops.[domain.ext]" published into your internal/external DNS. The Smartcrypt application will look for this record by default.

What this guide will cover:

  1. Scripted installation.
  2. SQL database requirements and setup.
  3. IIS website / application pool requirements and setup.
  4. TLS / SSL configuration and connectivity.
  5. Deployment of the Smartcrypt Enterprise Manager.

Active Directory Authentication Note:

Note

The Windows Server that will host the Smartcrypt Enterprise Manager site/application needs to have access to authenticate with your Active Directory. This authentication occurs over the standard Active Directory Domain Services protocols. For more information about ports that are needed for the Windows Server to have access to the domain, see:  https://technet.microsoft.com/en-us/library/dd772723(v=ws.10).aspx

Windows Server Core Installations:

Looking for instructions for installing on Windows Server Core? We've got you covered here: Windows Server Core Installation and Setup Guide

Scripted Installation 

Since v15.3, you have the option to perform a scripted installation of the Smartcrypt Enterprise Manager. Contact your PKWARE account representative to obtain the appropriate package for your platform.

 Scripted installation instructions

Steps performed

The script performs the following steps, in order:

  1. Checks numerous system dependencies.
  2. Allows the Administrator to select a database type for Smartcrypt Enterprise Manager. Choose from:
    1. A local database instance of PostgreSQL. The script will install and configure the database while prompting the Administrator to set a DB Instance Master password and DB access password.
    2. An external MS-SQL database which the script will later require information for (Hostname, Database Name, DB Username, DB Password).
    3. An external PostgreSQL database which the script will later require information for (Hostname, Database Name, DB Username, DB Password).
  3. Installs and configures appropriate Internet Information Services (IIS) Roles and Features.
  4. Configures the Smartcrypt Enterprise Manager website and an associated Application Pool in IIS.
  5. Generates and binds a Self-Signed Certificate to the website.
  6. Prompts the administrator to supply a default encryption master password.
  7. Prompts the administrator to supply a default system administration account for the Smartycrypt Manager.

Notes for the scripted deployment option:

  • The use of the Self-Signed Certificate created during the scripted installation is intended for Smartcrypt use in lab or non-production environments for a proof of concept or evaluation purposes. To install a trusted, rooted or other certificate, please see Importing a SSL Certificate in Windows Server
  • When this process is completed, a Hosts file (Windows/System32/driver/etc/hosts) or DNS entry, pointing directly to one or more IP addresses (an A record), will be required for client machines to connect back to the Manager.

Running the installation script

Extract the mds-installer.zip file and browse to the extracted location via PowerShell
Execute the script and follow the prompts

./sc_install.ps1

 

Confirm your selections:

Troubleshooting

Mobile and IOS devices cannot connect to the SMDS when it has been configured with this script. This is because these devices cannot use the self-signed certificate created by the setup script. Installing a trusted certificate will allow these types of devices to connect to SMDS.

SQL Server database requirements and setup: 

The Smartcrypt Enterprise Manager requires an empty database, appropriate authentication credentials and permissions.  Please perform the following actions, consulting the documentation for your version of SQL Server, if necessary.

  1. Login to your SQL Server and create an empty database
    1. Give the database a name and note the name down for later (e.g. "Smartcrypt")
    2. Set the database collation to:  Latin1_General_CI_AS
  2. Create a database user which the Smartcrypt Enterprise Manager will use to authenticate to this instance (e.g. smartcrypt-user)
    1. Set a database user password and be sure to uncheck options for "Must change password at next logon
    2. Give the database user the "db_owner" right to the Smartcrypt database you created above

For More Information about how to authenticate to Microsoft SQL Server, see:

 

IIS website / application pool requirements and setup:

Perform the following steps on the Windows Server running IIS:

  1. Install the Visual C++ 2012 Runtime
  2. Configure Internet Information Server (IIS) for Smartcrypt
  3. Install Web Deploy with Microsoft Web Platform Installer
  4. Configure Windows Authentication
  5. Adding an Application Pool
  6. Adding a Website
  7. Configuring the website for SSL

 

Install the Visual C++ 2012 Runtime 

Smartcrypt is developed with Microsoft® Visual Studio® 2012. The Microsoft Visual C++ redistributable enables some required features for Smartcrypt. Since Smartcrypt was created using Visual Studio 2012, the 2012 redistributables are required.

  1. Download and install the 64-bit version of the redistributable found here: https://www.microsoft.com/en-us/download/details.aspx?id=30679

Configure Internet Information Server for Smartcrypt 

Prior to installing the Smartcrypt Enterprise Manager website, you must have two features installed and configured on IIS. There are important, if slight, differences in the setups depending on which version of Windows Server you are running.

If you already have these features installed and configured, no changes are required. Skip to “Install Smartcrypt Enterprise Manager.”

Setting up IIS in Windows Server 2012 R2

Setting up IIS in Windows Server 2008 R2

Launch the Server Manager and select IIS

  1. Click Add Roles and Features
  2. Skip the Before you begin page. Click Next
  3. On the Installation Type page, select Role-based or feature-based installation. Click Next
  4. On the Select destination server page, choose the server you will install Smartcrypt on. Click Next
  5. Existing installations of IIS, Skip to Step 10
  6. On the Server Roles page, select Web Server (IIS)
  7. On the Features page, expand .NET Framework 4.5 Features and check: ASP.NET 4.5
  8. On the Roles Services page
    1. Expand Security and check Windows Authentication
    2. Expand Application Development and check .NET Extensibility 4.5, ASP.NET 4.5, ISAPI Extensions and ISAPI Filters.
  9. New installations of IIS, Skip to Step 11
  10. Existing Installations of IIS, verify that the following Server Roles are enabled:
    1. Web Server (IIS) | Web Server | Security | Windows Authentication
    2. Web Server (IIS) | Application Development | .NET Extensibility 4.5, ASP.NET 4.5, ISAPI Extensions, ISAPI Filters
  11. Confirm your installation selections and click Install.

Launch the Server Manager and select Web Server (IIS).

  1. If ASP.NET and/or Windows Authentication appear as Not Installed in the Role Services list, click Add Role Services
  2. Under Application Development, check ASP.NET
  3. Click Add Required Role Services and add:
    1. .NET Extensibility
    2. ISAPI Extensions
    3. ISAPI Filters
  4. Expand Security and check the Windows Authentication box
  5. Click Install


Enabling .NET Framework 4 Support in IIS (Windows Server 2008)

After installing the ASP.NET features in the Server Manager, you must still enable the .NET Framework in Windows Server 2008. This is done from an Administrator command prompt.

  1. Open the Command Prompt.
  2. Go to C:\Windows\Microsoft.NET\Framework64\v4.0.xxxx
  3. Run the following command:

    aspnet_regiis.exe -i
  4. ASP.NET RegIIS will install ASP.NET.


 

Install Web Deploy with Microsoft Web Platform Installer 

Install Web Deploy through the Microsoft Web Platform Installer (WPI), a free Microsoft tool to install a variety of products into IIS. Download WPI from http://www.iis.net/downloads/microsoft/web-deploy

After you download wpilauncher.exe, run it to see the Web Platform Installer screen. Click the Search box in the upper right corner and type "Web Deploy." Several options may appear, depending on what applications are supported. For your initial installation, we recommend you select the most recent version of Web Deploy with bundled SQL support. At the time this was written, 3.5 was the latest version so for example, Click Add on Web Deploy 3.5 with bundled SQL support. WPI will install everything you need.

 

Configure Windows Authentication 

After adding Windows Authentication to the Windows Server configuration, you must further configure the IIS Manager to permit this. The steps to allow single sign on are the same for both Windows Server 2008 and 2012:

  1. Open the IIS Manager (Control Panel > Administrative Tools > Internet Information Services Manager)
  2. In the Management section, select Feature Delegation
  3. Change the Authentication - Windows setting to Read/Write
  4. From the main window, click Authentication.
  5. Right click on Windows Authentication and select Enable (it not already enabled)

Adding an Application Pool 

  1. Open the IIS Manager (Control Panel > Administrative Tools > Internet Information Services Manager).
  2. Click View Application Pools to display existing pools.
  3. Click Add Application Pool.
  4. Give the Application Pool a name (possibly something like “MDS"). It is appropriate to accept the remaining default options.

Adding a website 

  1. Download the latest package ZIP file from PKWARE to your server. Note: Do not extract the contents of the ZIP archive.
  2. In IIS Manager, go to Sites.
  3. Click Add Website. Name it Smartcrypt Manager. The Add Website dialog will open.
  4. Choose a Site name. This can be the same as the Application Pool.
  5. Use the Select button to make sure you select the application pool you created in the previous section.
  6. Define the physical path to the content directory
  7. (Optional) Select a host name for the site. If you give the website a host name, make sure your domain has proper routing for the host defined in DNS.

If you are accessing Smartcrypt Enterprise Manager from outside your internal network domain, you also need to create a public DNS entry.
Make sure that the DNS entry points to one or more defined IP addresses (an A Record). Smartcrypt Enterprise Manager needs a fully qualified domain name to authenticate agents.

Click OK to complete this step and add the website.

 

Configuring the website for SSL 

The Smartcrypt Enterprise Manager requires an SSL connection to protect data being posted to the server. We need to add a binding to enable SSL for this website.

  1. Highlight the website you created in the earlier section. Select Bindings from the Edit Site options on the right. 
  2. The Add Site Binding screen appears. Select https from the Type: dropdown menu.
  3. Click Select to choose the SSL Certificate to use for this site.

 

 

Verify SSL is working properly!

Verify the site is working properly by pointing your browser to https://<server>/ – you should see the IIS Welcome Page.

Verify the certificate is trusted on your other devices!

If you are using a self-signed certificate, this will require additional steps. Learn how to trust any certificate here.

 

Installing Smartcrypt Enterprise Manager 

Now that the prerequisites are fulfilled, we are ready to install the Smartcrypt Enterprise Manager.

Note: The next section assumes you have a .ZIP file containing the Smartcrypt Enterprise Manager deployment package.

Importing the .ZIP file containing the Smartcrypt Enterprise Manager web application with Web Deploy 

  1. Highlight the website created above
  2. In the Action menu on the right side of the screen, select Import Application from the Deploy section
  3. Web Deploy will launch and ask you to select the Smartcrypt Enterprise Manager .ZIP file. Browse to the directory where the Smartcrypt package is located, select the ZIP, and click Next
  4. Web Deploy will scan the ZIP package contents and display them. Review the contents of the package, and click Next to confirm
  5. Web Deploy will prompt for some application configuration options on the Enter Application Package Information page:
  6. Set the Application Path to "mds" without the quotes. This is the name of the web application. This name the will appear in the URL you will use to access the Manager
  7. Set the Smartcrypt Manager Server Password. This password is used to encrypt your encryption keys. It should be securely backed up and not shared with PKWARE.
  8. Define a root administrator account for the Smartcrypt Enterprise Manager. This can be a domain account or a local account.  
    1. Domain Account: set a username (AD SysAdmin) only and leave the next two fields blank.
    2. Local Account: set a username (Local SysAdmin) and a password (Local SysAdmin Password) and leave the AD SysAdmin field blank.
  9. Set the parameters of the connection string with the information from your database administrator. This value connects Smartcrypt Manager to the database you initially setup
    1. datasource: The database server name or IP
    2. initial catalog: The name of the datbase to be used by the Smartcrypt Manager
    3. dbuser: The database server username
    4. dbpassword: The database user password
    5. Click Next to install Smartcrypt Manager via Web Deploy

Creating the Smartcrypt database schema 

Now that the web application is set up and deployed with SSL configured, the last item we need to complete is populating the Smartcrypt database with the initial schema. Smartcrypt comes with a tool to complete this task for you called SmartcryptDB.exe.  From the application server running IIS:

  1. Open a command window (cmd).
  2. Change directory to the location you installed the website to (above) and look for the bin directory.
  3. Now execute SmartcryptDB.exe.
  4. The tool should run and set up the required scheme for the version of the Smartcrypt Enterprise Manager you have.

 

Make sure your Application Pool is started and your website is started in IIS. Next, point your browser to https://<server>/<ApplicationPath>/SuperUser to login with the System Administrator credentials (Active Directory or Local) and start using Smartcrypt.

e.g.: https://smartcrypt.pkware.com/mds/SuperUser


  • No labels