Add / Delete CORS Settings

This section describes how to add/delete CORS Settings in CCC to add or delete a domain in the PostgreSQL/Oracle database. It contains the following sections:

>Adding/Deleting a CORS Domain in PostgreSQL

>Adding/Deleting a CORS domain in Oracle

Adding/Deleting a CORS Domain in PostgreSQL

The CCC Administrator can add and delete a CORS domain in PostgreSQL database by adding the CORS setting in the CCC.

To add a CORS domain in PostgreSQL

1.Go to the CCC installation directory:

cd /usr/safenet/ccc

2.Launch the CORS configuration script:

sh cors_manager.sh

3.Select PostgreSQL.

4.Enter the database server's hostname or IP address.

5.Enter the database server's port number.

6.Enter the database password for lunadirector user.

7.Enter the Crypto Command Center server's trust store password.

When the trust store password is entered, the database connection is established successfully.

8.Select To add CORS domain as Operation Type.

9.Enter the domain. The domain is added successfully.

The CCC administrator is prompted to add another domain.

10.Select Y if you want to add another domain or select N if you do not want to add another domain.

To delete a CORS domain in PostgreSQL

1.Go to the CCC installation directory:

cd /usr/safenet/ccc

2.Launch the CORS configuration script:

sh cors_manager.sh

3.Select PostgreSQL.

4.Enter the database server's hostname or IP address.

5.Enter the database server's port number.

6.Enter the database password for lunadirector user.

7.Enter the Crypto Command Center server's trust store password.

When the trust store password is entered, the database connection is established successfully.

8.Select To delete CORS domain as Operation Type.

9.Enter the domain. The domain is deleted successfully.

The CCC administrator is prompted to delete another domain.

10.Select Y if you want to add another domain or select N if you do not want to add another domain.

**WARNING**   The configuration script performs pattern matching. Ensure to enter the relevant domain name to perform the deletion operation successfully.

Adding/Deleting a CORS domain in Oracle

The CCC Administrator can add and delete a CORS domain in Oracle databse by adding the CORS setting in the CCC.

To add a CORS domain in Oracle

1.Go to the CCC installation directory:

cd /usr/safenet/ccc

2.Launch the CORS configuration script:

sh cors_manager.sh

3.Select Oracle.

4.Enter the database server's hostname or IP address.

5.Enter the database server's port number.

6.Enter the database server's service name.

7.Enter the database password for lunadirector user.

8.Enter the Crypto Command Center server's trust store password.

When the trust store password is entered, the database connection is established successfully.

9.Select To add CORS domain as Operation Type.

10.Enter the domain. The domain is added successfully.

The CCC administrator is prompted to add another domain.

11.Select Y if you want to add another domain or select N if you do not want to add another domain.

To delete a CORS domain in Oracle

1.Go to the CCC installation directory:

cd /usr/safenet/ccc

2.Launch the CORS configuration script:

sh cors_manager.sh

3.Select Oracle.

4.Enter the database server's hostname or IP address.

5.Enter the database server's port number.

6.Enter the database server's service name.

7.Enter the database password for lunadirector user.

8.Enter the Crypto Command Center server's trust store password.

When the trust store password is entered, the database connection is established successfully.

9.Select To delete CORS domain as Operation Type.

10.Enter the domain. The domain is deleted successfully.

The CCC administrator is prompted to delete another domain.

11.Select Y if you want to delete another domain or select N if you do not want to delete another domain.

**WARNING**   The configuration script performs pattern matching. Ensure to enter the relevant domain name to perform the deletion operation successfully.

NOTE   If the database connection is not established successfully while adding CORS Settings in PostgreSQL / Oracle database, the connection attempt failed error displays.