Socket
Socket
Sign inDemoInstall

@cocreate/cli

Package Overview
Dependencies
Maintainers
1
Versions
224
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocreate/cli - npm Package Compare versions

Comparing version 1.45.1 to 1.45.2

src/commands/other/aws.js

4

CoCreate.config.js

@@ -405,4 +405,4 @@ module.exports = {

{
"path": "../CoCreate-metrics-server",
"repo": "github.com/CoCreate-app/CoCreate-metrics-server.git"
"path": "../CoCreate-metrics",
"repo": "github.com/CoCreate-app/CoCreate-metrics.git"
},

@@ -409,0 +409,0 @@ {

{
"name": "@cocreate/cli",
"version": "1.45.1",
"version": "1.45.2",
"description": "Polyrepo management bash CLI tool. Run all git commands and yarn commands on multiple repositories. Also includes a few custom macros for cloning, installing, etc.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -9,2 +9,6 @@ const util = require('node:util');

const certificates = new Map()
const certbotPath = `/etc/letsencrypt/live/`;
const fullchainPath = `${certbotPath}/fullchain.pem`;
const privkeyPath = `${certbotPath}/privkey.pem`;
const combinedPath = `${certbotPath}/haproxy.pem`;

@@ -100,2 +104,32 @@

const combineCertificate = (host) => {
const certbotPath = `/etc/letsencrypt/live/${host}`;
const fullchainPath = `${certbotPath}/fullchain.pem`;
const privkeyPath = `${certbotPath}/privkey.pem`;
const combinedPath = `${certbotPath}/haproxy.pem`;
fs.readFile(fullchainPath, (err, fullchainData) => {
if (err) {
console.error('Error reading fullchain.pem:', err);
return;
}
fs.readFile(privkeyPath, (err, privkeyData) => {
if (err) {
console.error('Error reading privkey.pem:', err);
return;
}
const combinedData = `${fullchainData}\n${privkeyData}`;
fs.writeFile(combinedPath, combinedData, (err) => {
if (err) {
console.error('Error writing combined haproxy.pem:', err);
} else {
console.log('Successfully combined certificates for HAProxy.');
}
});
});
});
};
async function test(host) {

@@ -102,0 +136,0 @@ try {

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc