New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

office-addin-dev-certs

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

office-addin-dev-certs

For managing certificates when developing Office Add-ins.

  • 1.13.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Office-Addin-dev-certs

This package can be used to manage certificates for development server using https://localhost.

Installation

npm install office-addin-dev-certs

Upon installation a development CA certicate and localhost key and certificate will be generated inside <userhome>/.office-addin-dev-certs. The certificate is valid for 30 days by default.

Command-Line Interface

install

Creates an SSL certificate for "localhost" signed by a developer CA certificate and installs the developer CA certificate so that the certificates are trusted. If the certificates were installed but are no longer valid, they will be replaced with valid certificates.

Syntax:

office-addin-dev-certs install [options]

Options:

--machine

Install the CA certificate for all users. You must be an Administrator.

--days <days>

Specifies the number of days until the CA certificate expires. Default: 30 days.

verify

Verify the certificate.

Syntax:

office-addin-dev-certs verify

uninstall

Uninstall the certificate.

Syntax:

office-addin-dev-certs uninstall [options]

Options:

--machine

Uninstall the CA certificate for all users. You must be an Administrator.

API Usage

var https = require('https')
var devCerts = require("office-addin-dev-certs");
var options =  await devCerts.getHttpsServerOptions();

var server = https.createServer(options, function (req, res) {
  res.end('This is servered over HTTPS')
})

server.listen(443, function () {
  console.log('The server is running on https://localhost:443')
})

Keywords

FAQs

Package last updated on 27 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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