Skip to content

Commit

Permalink
Remove more debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Aug 8, 2023
1 parent 15c8529 commit 40ee7a8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/datastore/postgres/PgDataStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ export class PgDataStore implements DataStore, ProvisioningStore {
try {
const keyParts = row.key.split(',').map(v => cryptoStore.decrypt(v));
config.certificate.key = `-----BEGIN PRIVATE KEY-----\n${keyParts.join('')}-----END PRIVATE KEY-----\n`;
console.log(keyParts);
}
catch (ex) {
log.warn(`Failed to decrypt TLS key for ${userId} ${domain}`, ex);
Expand Down Expand Up @@ -572,12 +571,10 @@ export class PgDataStore implements DataStore, ProvisioningStore {
key = key.replace('-----BEGIN PRIVATE KEY-----\n', '').replace('-----END PRIVATE KEY-----\n', '');
while (key.length > 0) {
const part = key.slice(0, 64);
console.log(part);
cryptoParts.push(this.cryptoStore.encrypt(part));
key = key.slice(64);
}
keypair.key = cryptoParts.join(',');
console.log(cryptoParts);
}
const parameters = {
user_id: userId,
Expand Down

0 comments on commit 40ee7a8

Please sign in to comment.