Pre-production and production environments

How to switch from pre-production to production with the Connector for Java

179 views August 7, 2017 October 19, 2018 0

This guide will show you how to switch from pre-production to production if you are using the Connector for Java library. The guide describes the changes in configuration that is necessary to make the switch.

For more information about the differences between pre-production and production, refer to Differences between pre-production and production.

Overview

The Connector for Java library includes all certificates that is necessary to connect to both the pre-production and production environment.

You must change the configuration settings to let the library know which environment you are connecting to. You must also redirect the user to the correct url at signicat.com.

Step-by-step

Change the url to signicat.com

If you are not using subdomains, change the url from https://preprod.signicat.com/… to https://id.signicat.com/… The path and all http parameters should be left unchanged.

Example from the protected.jsp file in the demo login application
Change from:
    response.sendRedirect("https://preprod.signicat.com/std/method/shared?method=nbid&profile=demo&target=" + targetUrl);
to:
    response.sendRedirect("https://id.signicat.com/std/method/shared?method=nbid&profile=demo&target=" + targetUrl);

If you are using Signicat Subdomains, change “preprod.signicat.com” to the subdomain you are using. The path and all http parameters should be left unchanged.

Example from the protected.jsp file in the demo login application, if you are using a subdomain
Change from:
    response.sendRedirect("https://preprod.signicat.com/std/method/shared?method=nbid&profile=demo&target=" + targetUrl);
to:
    response.sendRedirect("https://your.subdomain.name/std/method/shared?method=nbid&profile=demo&target=" + targetUrl);

Change the name of the certificate in the configuration

Find the location where you are specifying the name of the certificate in the configuration. The name of the configuration parameter is “asserting.party.certificate.subject.dn”.

Change the configuration parameter from:

CN=preprod.signicat.com/std, OU=Signicat, O=Signicat, L=Trondheim, ST=Norway, C=NO

to:

CN=id.signicat.com/std, OU=Signicat, O=Signicat, L=Trondheim, ST=Norway, C=NO

Was this helpful?