Migration Guide - Sentinel HASP To Sentinel LDK
Migration Guide - Sentinel HASP To Sentinel LDK
Disclaimer
We have attempted to make this document complete, accurate, and useful, but we cannot guarantee it to be perfect. When we discover
errors or omissions, or they are brought to our attention, we endeavor to correct them in succeeding releases of the product. SafeNet, Inc.
is not responsible for any direct or indirect damages or loss of business resulting from inaccuracies or omissions contained herein. The
specifications contained in this document are subject to change without notice.
Contents
Introduction .............................................................................................................................. 5
Overview ............................................................................................................................... 7
Migration Paths for HASP SRM and Sentinel HASP ............................................................ 7
Target Audience .................................................................................................................... 7
Summary of the Migration Process ....................................................................................... 8
Migrating a Large BSS Database.......................................................................................... 8
Changes at Customer Sites .................................................................................................. 8
Replacing the Sentinel HASP Activation Server ................................................................... 9
Method A: Modify the DNS Address ................................................................................. 9
Method B: Change the Sentinel EMS Port Number.......................................................... 9
Working with Business Studio Server API ............................................................................ 9
Which Data is Migrated? ..................................................................................................... 10
Limitations and Workarounds .............................................................................................. 10
Distribution Channel Functionality .................................................................................. 10
Reports ............................................................................................................................ 10
User Name ...................................................................................................................... 11
Customer Attributes ........................................................................................................ 11
Miscellaneous Field Reassignments .............................................................................. 11
Migration of Orders for HASP HL Max Micro Keys ......................................................... 12
Migration of Products That Do Not Contain Features ..................................................... 12
Migration of Completed Orders in the Demo Database .................................................. 12
Performing a Trial Migration ................................................................................................ 12
Preparing for Migration ........................................................................................................ 13
Estimate Time Required for Migration ............................................................................ 13
Install Sentinel EMS ........................................................................................................ 13
Set Up Sentinel LDK Data Migration Tool ...................................................................... 13
Determine Batch Codes to be Migrated .......................................................................... 14
Ensure That Sentinel EMS and BSS Database Services are Active .............................. 14
Ensure That the Required Master Keys are Connected ................................................. 14
Back Up Sentinel EMS Database and BSS Database (Optional) .................................. 14
Migrating the BSS Database ............................................................................................... 15
Run the Sentinel LDK Data Migration Tool ..................................................................... 15
Reintroduce the Master Keys .......................................................................................... 17
Verifying the Success of the Migration Process .................................................................. 18
Migration Guide: Sentinel HASP Sentinel LDK 4
Overview ............................................................................................................................. 20
Prerequisites ....................................................................................................................... 20
Functionality Changes ......................................................................................................... 20
AddProductsToOrder Method ......................................................................................... 20
InsertCustomer Method .................................................................................................. 21
Retrieving Orders Based on Order ID ............................................................................. 21
Retrieving Customers Based on Customer ID ................................................................ 21
Other Changes to BSS API Functions ............................................................................ 22
Setting Up Business Studio Server API for Sentinel EMS .................................................. 22
As an ASP.NET SOAP Web Service .............................................................................. 22
Local (As a .NET DLL) .................................................................................................... 25
Appendix A: Working With the Sentinel EMS Web Interface ............................................ 27
Appendix B: Troubleshooting .............................................................................................. 29
Introduction
Migration Options
The following types of Sentinel HL keys are available, replacing the HASP HL keys that were provided until
now:
• Sentinel HL (HASP configuration) keys
These keys are fully compatible with existing HASP HL keys and with older generations of HASP keys.
These keys can work with your existing API libraries and Run-time Environment, and you can work with
your current backend environment. These keys can be upgraded at the customer site to Sentinel HL
(Driverless configuration) keys and can thus provide all the benefits provided by the Driverless keys.
For information on upgrading Sentinel HL (HASP configuration) keys to the Driverless configuration,
see the Sentinel LDK Software Protection and Licensing Guide.
• Sentinel HL (Driverless configuration) keys
These keys make use of HID drivers (included in the Windows operating system) instead of SafeNet
drivers. These keys can be used without installing the Runtime Environment. To use these keys, your
protected application must include the Licensing API libraries from Sentinel LDK v.7.1, and you must be
working with the backend from Sentinel LDK v.7.1.
Vendors who are currently working with Sentinel HASP (or HASP SRM) have the following options:
• Remain with their current (Business Studio Server) back end, Run-time Environment and Run-time API
libraries, and order Sentinel HL (HASP configuration) keys.
• Migrate to Sentinel LDK (as described in this migration guide), but order Sentinel HL (HASP
configuration) keys. It is not necessary to replace their current AP libraries or Run-time Environment.
• Migrate to Sentinel LDK (as described in this migration guide), and order Sentinel HL (Driverless
configuration) keys. It is necessary in this case to replace their current AP libraries and Run-time
Environment.
Migration Guide: Sentinel HASP Sentinel LDK 7
Overview
Sentinel EMS introduces a new database that is different from the database used by Sentinel HASP.
The Sentinel LDK Data Migration Tool migrates the data from an existing Sentinel HASP Business Studio
Server database (BSS database) to a Sentinel EMS database.
Using this tool, you can handle the transition from Sentinel HASP BSS to Sentinel EMS with a relatively small
effort. Wherever possible, the Data Migration Tool creates required new entities automatically or coverts
existing entities as required.
This section describes how to use the Sentinel LDK Data Migration Tool to perform this process.
Note: The migration process is not reversible. No procedure is provided to migrate data from the Sentinel
EMS database to the Sentinel HASP BSS database.
Target Audience
The migration process is appropriate for software vendors who are currently using Sentinel HASP v.5.0,
v.5.10 or v.5.12 and who want to advance to Sentinel LDK v.7.1.
For vendors who require Language Packs for Sentinel EMS and Sentinel LDK Vendor Tools: Language Packs
will be made available several months after Sentinel LDK v.7.1 is released. For more information, contact
your SafeNet sales representative.
Migration Guide: Sentinel HASP Sentinel LDK 8
Before you undertake the migration of your BSS database to Sentinel EMS, you must be ready to implement
Business Studio Server API for Sentinel EMS in your backend systems. This is necessary so that your backend
systems will be ready to work with the Sentinel EMS database as soon as the migration is completed.
For more information, see “Implementing the Business Studio Server API for Sentinel EMS” on page 20.
Reports
Sentinel EMS does not provide the same business intelligence reports that exist in Business Studio. (Note,
however, that you can define custom reports in Sentinel EMS.)
Migration Guide: Sentinel HASP Sentinel LDK 11
User Name
In Sentinel HASP, a Business Studio user name can contain the characters “-”, “&”, and space. A Sentinel
EMS user name cannot contain these characters. Therefore, any of these characters in a user name is
converted to “_”.
A Sentinel EMS user must have an email address. If a Business Studio user does not have an email address,
the Migration Tool assigns the email address [email protected] to the migrated Sentinel EMS
user.
Customer Attributes
The Migration Tool converts all customers from the BSS database to customers of type Company in Sentinel
EMS. The value from the Name field in BSS is migrated to the Company Name field in Sentinel EMS.
E-mail address and Contact Name must always be provided together in Sentinel EMS, and E-mail address
must be unique. These requirements do not exist in Sentinel HASP. Therefore, if either of these does not
exist in the BSS database, or if the E-mail address is not unique, the Migration Tool places whichever
information is available in the Description field in the Sentinel EMS database.
The table that follows indicates how the Name, E-mail and Contact Person fields from the BSS database are
migrated to the Sentinel EMS database.
(Order) Order ID (Entitlement) Ref ID 2 After migration, the field value in Sentinel
EMS is: HASP_OrderID_originalValue
(Customer) Customer ID (Customer) CRM ID After migration, the field value in Sentinel
EMS is: HASP_CustomerID_originalValue
(Customer) Street, City, Zip (Customer) Street In Sentinel EMS, the values of the three
fields are combined in the Street Field.
procedures described below. After you complete a trial migration process, perform the validation steps
described later in this document (see “Verifying the Success of the Migration Process” on page 18).
As part of your trial migration, be sure to test your implementation of Business Studio Server API for
Sentinel EMS (if you use Business Studio Server API in your current production environment).
After you are satisfied that the migration proceeds as expected and that you are prepared to handle any
resulting changes, you are ready to perform migration for your production environment.
3. If you did not install Sentinel EMS on the same computer as Business Studio Server, ensure that Java
Runtime Environment 7 (JRE 7) is present on the Business Studio Server computer. JRE 7 is available
from:
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.html
OR
(For Windows Vista, Windows 7, or Windows 2008) Open a Command window as an administrator and
enter:
Java –jar migrationTool.jar
Note: If the size of the BSS database is greater than 500 MB, do not double-click MigrationTool.jar.
Open a Command window as an administrator and enter the following command to run the Migration
Tool with an increased heap size:
Java –Xms256m –Xmx1024m –jar MigrationTool.jar
The Migration Tool starts. The following screen is displayed:
3. If you want to migrate demo data (DEMOMA Batch Code) from the BSS database to the Sentinel EMS
database, select the Migrate demo data check box.
4. Click Next.
Migration Guide: Sentinel HASP Sentinel LDK 16
The User Name field should contain the name of a user who has full administrator privileges for the
BSS database.
5. Click Test Connection to confirm that the Migration Tool can connect to the database.
6. If you have not yet backed up the BSS database, you can click Back Up Database now to back it up.
(This function can only be used if the BSS database is located on the local machine.)
Note: If the database backup fails, refer to “Appendix B: Troubleshooting” on page 29.
7. Click Next to continue. A screen similar to the following is displayed:
8. If Sentinel EMS is installed on a remote computer, enter the connection parameters. The User Name
field should contain the name of a user who has full administrator privileges for the Sentinel EMS
database. If necessary, modify firewall settings so that the Migration Tool can communicate with the
Sentinel EMS database server.
Migration Guide: Sentinel HASP Sentinel LDK 17
9. Click Test Connection to confirm that the Migration Tool can connect to the database.
10. If you have not yet backed up the Sentinel EMS database, you can click Back Up Database now to back
it up. (This function can only be used if the Sentinel EMS database is located on the local machine.)
Note: If the database backup fails, refer to “Appendix B: Troubleshooting” on page 29.
11. Click Next to continue.
The migration process begins. This process may require several hours. Progress screens are displayed
during this process.
Note: If the database preparation phase of the process freezes, refer to “Appendix B: Troubleshooting”
on page 29.
Upon completion of the migration process:
• A detailed report of the migration process is displayed in a browser window. The complete
contents of this report can also be found in:
\BusinessStudioServer-Migration\migration_date_time.html.
• A screen similar to the following is displayed:
You can click View Report to reopen the detailed report of the migration process.
Overview
Sentinel LDK provides a Web Services interface to perform CMR or ERP actions in Sentinel EMS.
However, vendors who are working with the Sentinel HASP Business Studio Server API (BSS API) have
typically invested extensive time and effort to integrate the API with their existing ERP and CRM
infrastructure.
Business Studio Server API for Sentinel EMS (BSS API for EMS) allows you to take advantage of the benefits
provided by Sentinel EMS while continuing to use the API calls in the BSS API. Thus, after migration to
Sentinel LDK, you can continue to use your existing backend systems with a minimum of modification.
Note: In your applications, you have the option of calling functions both in the BSS API for EMS and in
Sentinel EMS Web Services. This enables you to take advantage of any new functionality that is not
supported in the BSS API.
Prerequisites
You must be using Sentinel EMS v.7.1 (this is provided with Sentinel LDK v.7.1).
Your backend applications must be compatible with Sentinel Business Studio Server API v.5.0 or later.
Functionality Changes
This section describes changes in the behavior of certain methods in BSS API for EMS.
For more information regarding the methods described in this section, see the
business_studio_server_api_en-US.chm help file. This can be found on the computer where Sentinel LDK
Vendor Tools are installed, under:
%SystemDrive%\Program Files (x86)\SafeNet Sentinel\Sentinel LDK\Legacy\API\BusinessStudioServer\
(For Windows x86, use %SystemDrive%\Program Files\...)
AddProductsToOrder Method
In Sentinel HASP BSS API, this method adds new Products to an existing order.
In BSS API for EMS, this method replaces all the products in the entitlement with the Products contained in
the inProducts array.
Thus, to add Products to an entitlement, the in Products array must contain both the Products that exist in
the entitlement and the Products to add to the entitlement.
Note that this change in the functionality enables you to use the AddProductsToOrder method to remove
Products from an existing entitlement.
Migration Guide: Sentinel HASP Sentinel LDK 21
InsertCustomer Method
In BSS API for EMS, this method will always insert a customer of type Company (rather than Individual).
Additional parameters are mapped as follows:
Parameter in Parameter is Parameter in BSS API for EMS
Sentinel HASP BSS API Mandatory
Address No Street
Contact Mandatory if Email is Contact Information: First Name, Last Name,
provided. Middle Name
Email Mandatory if Contact Contact E-mail
is provided.
Fax No Fax
Name Yes Company Name
Phone No Telephone
Reference No Ref ID
Status No Enabled: Yes or No
Zip Code No Zip Code
(If you want to insert a customer of type Individual, you can use the functions available in the Sentinel EMS
Web Services.)
Double-click setup.exe.
The BSS API for EMS installation wizard starts.
2. Proceed through the installation wizard. You can accept all defaults or make changes as required.
3. (Optional) Confirm that the Web service was installed correctly by accessing the following URL:
http://localhost/BusinessAPI/BusinessAPIService.asmx
If a page describing the Sentinel HASP Business Studio Server API is displayed, the Web Service was
installed correctly.
4. In your application, be sure to modify the call to the Initialize method in the BSS API as necessary in
order to connect to the Sentinel EMS server.
Configure Use of SSL
By default, Sentinel EMS Service is configured to operate without using SSL. If you have set up Sentinel EMS
Service to use SSL, you must also set up BSS API for EMS to use SSL.
You can set up BSS API for EMS to use SSL:
• By modifying the useSSL parameter in the IIS management console.
• By directly modifying the useSSL parameter in the web.config file.
To modify the useSSL parameter in the IIS management console:
1. Start the Internet Information Services (IIS) management console using the method that is appropriate
for your operating system.
2. Under the entry for the relevant computer, choose Site (or Web Site). Under Default Web Site, select
BusinessAPI > ASP.NET > BusinessAPI > Application Settings. In the Application Settings properties,
find the UseSSL key. Change the values for the key to true (to enable SSL).
To modify the useSSL parameter directly in the web.config file:
1. Open the file Web.config in a text editor. This file is typically located in the directory:
%SystemDrive%/Inetpub/wwwroot/BusinessAPI/
2. Locate the following line in the file:
<add key="useSSL" value="false" />
3. To set up BSS API for EMS to use SSL, change the value from false to true.
4. Save the file.
Configure Log File Generation (Optional)
By default, BSS API for EMS does not generate log file entries. You can enable generation of log file entries
and set the verbosity level of the API as follows:
1. Open the file Web.config in a text editor. This file is typically located in the directory:
%SystemDrive%/Inetpub/wwwroot/BusinessAPI/
2. Locate the following line in the file:
globalThreshold="Off"
Migration Guide: Sentinel HASP Sentinel LDK 25
3. Change the value Off to the desired log verbosity level. Possible log verbosity levels are:
Debug – Generate verbose log entries. This also includes messages from the Error and Fatal
levels.
Error – Generate log entries for errors only. This also includes messages from the Fatal level.
Fatal – Generate log entries for fatal errors only.
4. Locate the following line in the file:
<logger name="*"minlevel="Fatal" writeTo="file" />
5. Change the value assigned to minlevel so that it matches the verbosity level assigned to
globalTheshold.
6. Save the file.
(To disable generation of log entries, change just the value for globalTheshold back to Off.)
Note: If BSS API for EMS fails to generate log files after it was properly configured, see the troubleshooting
section on page 29.
5. By default, BSS API for EMS does not generate log file entries. You can enable generation of log file
entries and set the verbosity level of the API . Modify Nlog.config as follows:
a. Locate the following line in the file:
globalThreshold="Off"
b. Change the value Off to the desired log verbosity level. Possible log verbosity levels are:
Debug – Generate verbose log entries. This also includes messages from the Error and
Fatal levels.
Error – Generate log entries for errors only. This also includes messages from the Fatal
level.
Fatal – Generate log entries for fatal errors only.
c. Locate the following line in the file:
<logger name="*"minlevel="Fatal" writeTo="file" />
d. Change the value assigned to minlevel so that it matches the verbosity level assigned to
globalTheshold.
e. Save the file.
(To disable generation of log entries, change just the value for globalTheshold back to Off.)
6. In your application, be sure to modify the call to the Initialize method in the BSS API as necessary in
order to connect to the Sentinel EMS server.
7. Recompile your .NET application.
Migration Guide: Sentinel HASP Sentinel LDK 27
Appendix B: Troubleshooting
This appendix describes possible solutions to certain issues that may occur during the migration process or
when attempting to work with BSS API for EMS.
If this occurs, click Cancel and restart the Migration Tool. It is not necessary to back up the BSS database or
Sentinel EMS database again at this point.
If the same problem continues to occur after one or two retries, clean up the BSS database and restart the
process.
To clean up the BSS database:
1. Click Cancel to stop the Migration Tool.
2. Connect to the BSS database using SQL Server Management Studio and do the following:
a. Back up the BSS database.
b. Run CleanKeyOrderForMigration.sql. This can be found in the directory:
\BusinessStudioServer-Migration\bss\Handler\HASPProductionManageMigration\sql\mssql\
3. Restart the Migration Tool.