migrate certs into the blobs database

use platformdata/nginx/cert to store the certs
This commit is contained in:
Girish Ramakrishnan
2021-05-07 20:19:18 -07:00
parent 182918b13d
commit 84af9580a6
7 changed files with 84 additions and 26 deletions

View File

@@ -343,10 +343,10 @@ describe('Domains API', function () {
});
it('did set the certificate', function (done) {
var cert = fs.readFileSync(path.join(paths.APP_CERTS_DIR, `${DOMAIN_0.domain}.host.cert`), 'utf-8');
var cert = fs.readFileSync(path.join(paths.NGINX_CERT_DIR, `${DOMAIN_0.domain}.host.cert`), 'utf-8');
expect(cert).to.eql(validCert1);
var key = fs.readFileSync(path.join(paths.APP_CERTS_DIR, `${DOMAIN_0.domain}.host.key`), 'utf-8');
var key = fs.readFileSync(path.join(paths.NGINX_CERT_DIR, `${DOMAIN_0.domain}.host.key`), 'utf-8');
expect(key).to.eql(validKey1);
done();