Skip to content

Commit

Permalink
PP-4213: Remove certs stuff
Browse files Browse the repository at this point in the history
These can be removed as frontend no longer uses TLS.

@oswaldquek
  • Loading branch information
oswaldquek committed Oct 1, 2018
1 parent 797145f commit d307782
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 60 deletions.
7 changes: 0 additions & 7 deletions app/utils/base_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const {getNamespace} = require('continuation-local-storage')
const AWSXRay = require('aws-xray-sdk')

// Local dependencies
const customCertificate = require('./custom_certificate')
const CORRELATION_HEADER_NAME = require('./correlation_header').CORRELATION_HEADER
const {addProxy} = require('./add_proxy')

Expand All @@ -26,12 +25,6 @@ const agentOptions = {

const clsXrayConfig = require('../../config/xray-cls')

if (process.env.DISABLE_INTERNAL_HTTPS !== 'true') {
agentOptions.ca = customCertificate.getCertOptions()
} else {
logger.warn('DISABLE_INTERNAL_HTTPS is set.')
}

/**
* @type {http.Agent}
*/
Expand Down
32 changes: 0 additions & 32 deletions app/utils/custom_certificate.js

This file was deleted.

4 changes: 1 addition & 3 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ if [ -f $ENV_FILE ]
then
set -a
source $ENV_FILE
set +a
set +a
fi

export CERTS_PATH=$WORKSPACE/pay-scripts/services/ssl/certs

eval "$@"
18 changes: 0 additions & 18 deletions test/unit/custom_certificate_tests.js

This file was deleted.

0 comments on commit d307782

Please sign in to comment.