Skip to content

Commit

Permalink
BC: Update URLs for ITE and Production environments to support the pr…
Browse files Browse the repository at this point in the history
…oduction RealMe change on Sunday 01 May
  • Loading branch information
madmatt committed Apr 27, 2016
1 parent 0017594 commit c17f5c5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
10 changes: 8 additions & 2 deletions docs/en/ssl-certs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Four certificates must be purchased by the agency - two each for ITE and product
**Note: This is not required if using CWP infrastructure. In CWP, you should
[raise a service desk ticket](https://www.cwp.govt.nz/service-desk/new-request/) to begin this process -
CWP Operations staff will purchase certificates, install them, and invoice you for this service. These
instructions are only necessary when using this module on infrastructure other than CWP.
instructions are only necessary when using this module on infrastructure other than CWP.

### Requirements when purchasing & installing certificates

RealMe places some restrictions on which certificate authorities can be used, and also the type of
certificates purchased. Of note, these are:

* SSL Certificates must be purchased from either [RapidSSL](https://www.rapidssl.com/) or
* SSL Certificates must be purchased from either [RapidSSL](https://www.rapidssl.com/) or
[VeriSign](https://www.verisign.com/).
* When purchasing certificates, RealMe requires that three-year expiries are purchased and used.
* The certificate bit length must be 2048 (this is generally the default).
Expand Down Expand Up @@ -70,3 +70,9 @@ When prompted by `openssl`, use the following parameters:
| A challenge password | Leave blank |
| An optional company name | Leave blank |

### Manually installing certificates

If not running on CWP, then you must manually create the directory that the `REALME_CERT_DIR` environment variable
points to. As well as loading the certificates that have been purchased into this folder, the appropriate public keys
from the RealMe Shared Workspace must be added as well. More information on this process is available within the RealMe
shared workspace.
6 changes: 3 additions & 3 deletions templates/simplesaml-configuration/authsources.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
// ITE - RealMe Integrated Test Environment
$config['realme-ite'] = array(
'saml:SP',
'entityID' => '{{ite-entityID}}', // https://realme-demo.cwp.govt.nz/realme-demo/service1
'entityID' => '{{ite-entityID}}',
'idp' => 'https://www.ite.logon.realme.govt.nz/saml2',
'discoURL' => null,

Expand All @@ -107,7 +107,7 @@
'capture_peer_cert' => true,
'allow_self_signed' => false,
'verify_depth' => 5,
'peer_name' => 'as.ite.logon.realme.govt.nz',
'peer_name' => 'ws.ite.realme.govt.nz',
'cafile' => $_SERVER['DOCUMENT_ROOT']. "/mysite/certificate-bundle.pem"
)
);
Expand Down Expand Up @@ -156,7 +156,7 @@
'capture_peer_cert' => true,
'allow_self_signed' => false,
'verify_depth' => 5,
'peer_name' => 'as.logon.realme.govt.nz',
'peer_name' => 'ws.realme.govt.nz',
'cafile' => $_SERVER['DOCUMENT_ROOT']. "/mysite/certificate-bundle.pem"
)
);
Expand Down
8 changes: 4 additions & 4 deletions templates/simplesaml-configuration/saml20-idp-remote.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@
'SingleSignOnService.artifact' => 'https://www.ite.logon.realme.govt.nz/sso/logon/metaAlias/logon/logonidp',

'certificate' => 'ite.signing.logon.realme.govt.nz.cer',
'saml.SOAPClient.certificate' => 'as.ite.logon.realme.govt.nz.cer',
'saml.SOAPClient.certificate' => 'ws.ite.realme.govt.nz.cer',

'ArtifactResolutionService' => array(
array(
'index' => 0,
'Location' => 'https://as.ite.logon.realme.govt.nz/sso/ArtifactResolver/metaAlias/logon/logonidp',
'Location' => 'https://ws.ite.realme.govt.nz/login/sso/ArtifactResolver/metaAlias/logon/logonidp',
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP'
)
)
Expand All @@ -67,12 +67,12 @@
'SingleSignOnService.artifact' => 'https://www.logon.realme.govt.nz/sso/logon/metaAlias/logon/logonidp',

'certificate' => 'signing.logon.realme.govt.nz.cer',
'saml.SOAPClient.certificate' => 'as.logon.realme.govt.nz.cer',
'saml.SOAPClient.certificate' => 'ws.realme.govt.nz.cer',

'ArtifactResolutionService' => array(
array(
'index' => 0,
'Location' => 'https://as.logon.realme.govt.nz/sso/ArtifactResolver/metaAlias/logon/logonidp',
'Location' => 'https://ws.realme.govt.nz/login/sso/ArtifactResolver/metaAlias/logon/logonidp',
'Binding' => 'urn:oasis:names:tc:SAML:2.0:bindings:SOAP'
)
)
Expand Down

0 comments on commit c17f5c5

Please sign in to comment.