Data storage
You can configure a data storage in Microsoft SQL or PostgreSQL.
To configure a data storage for Axidian CertiFlow:
- Create a database.
- Create a service account.
- Populate the database with a script from the Axidian CertiFlow installation package.
- Microsoft SQL
- PostgreSQL
- Create a database in SQL Server Management Studio.
- In the Object Explorer pane, right-click Databases and select New Database.
- Enter a database name and click OK.
- Use a local SQL service account or an Active Directory service account and grant it the required permissions to manage the database. This service account is used to perform read and write operations in the database.
- In the Object Explorer pane, expand the Security section.
- Right-click the Logins folder and select the service account from the context menu.
- Go to the User Mapping tab and configure the account permissions.
- In the Database role membership for section, select the check boxes next to the db_owner and public permissions.
- Populate the database.
- Go to the File menu and click Open.
- Select File..., specify the catalog path to the Storage.sql file (\AxidianCertiflow.WindowsServer\Misc) and click Open.
- Before running the script, uncomment
--USE[<database name>]--GOand specify the name of the database or select it from the list. - Click Execute.
- Create a database in pgAdmin.
- Open pgAdmin and connect to the server.
- In the Browser section, right-click Databases and select Create → Database....
- On the General tab, specify the database name in the Database field, select the service account from the Owner list, and click Save.
- Create a service account.
- In the Browser section, right-click the Login/Group Roles menu item.
- Select Create → Login/Group Role....
- On the General tab, specify a service account name in the Name field.
- On the Definition tab, specify the password in the Password field. Make sure the Account Expires field has the No Expiry value.
- On the Privileges tab, enable the Can Login? parameter and click Save.
- Populate the database. Select the created database in the Browser section, execute the Storage-Postgre.sql script and grant the service account the required permissions.
- Select Tools → Query Tool.
- Click
and specify the catalog path to the Storage-Postgre.sql file (\AxidianCertiflow.WindowsServer\Misc). Click Select.
- Click Execute/Refresh
.
- Click
and select Clear Query.
- Enter the query text with the service account name:
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "service account name";- Click Execute/Refresh
.
Configure a remote connection to the database
Open the pg_hba.conf configuration file.
pg_hba.conf file location
Windows OS: C:\Program Files\PostgreSQL<version number>\data
Linux OS: /etc/postgresql/<version number>/main.Add a string in the following format:
CONNECTIONTYPE DATABASE USER ADDRESS METHODCONNECTIONTYPE– the name of the connection type. Specifyhostto use TCP/IP connection.DATABASE– the name of the database.USER– name of the user who accesses the database.ADDRESS– the IP address of the remote Axidian CertiFlow server.METHOD– the user authentication method.
host AxidianStorage servicepg 192.200.1.0/24 md5