Detalhes do pacote

google-p12-pem

googleapis18.6mMITdepreciado5.0.0

Package is no longer maintained

Convert Google .p12 keys to .pem keys.

readme (leia-me)

Google Cloud Platform logo

google-p12-pem: Node.js Client

release level npm version

Convert Google .p12 keys to .pem keys.

A comprehensive list of changes in each version may be found in the CHANGELOG.

Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.

Table of contents:

Quickstart

Installing the client library

npm install google-p12-pem

Using the client library

const {getPem} = require('google-p12-pem');

/**
 * Given a p12 file, convert it to the PEM format.
 * @param {string} pathToCert The relative path to a p12 file.
 */
async function quickstart() {
  // TODO(developer): provide the path to your cert
  // const pathToCert = 'path/to/cert.p12';

  const pem = await getPem(pathToCert);
  console.log('The converted PEM:');
  console.log(pem);
}

quickstart();

CLI style

gp12-pem myfile.p12 > output.pem

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

Sample Source Code Try it
Quickstart source code Open in Cloud Shell

The google-p12-pem Node.js Client API Reference documentation also contains samples.

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.

Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed through npm dist-tags. The dist-tags follow the naming convention legacy-(version). For example, npm install google-p12-pem@legacy-8 installs client libraries for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

This library is considered to be General Availability (GA). This means it is stable; the code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against GA libraries are addressed with the highest priority.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its templates in directory.

License

Apache Version 2.0

See LICENSE

changelog (log de mudanças)

Changelog

npm history

5.0.0 (2023-08-15)

⚠ BREAKING CHANGES

  • upgrade to Node 14 (#435)

Miscellaneous Chores

4.0.1 (2022-08-23)

Bug Fixes

4.0.0 (2022-05-17)

⚠ BREAKING CHANGES

  • update library to use Node 12 (#410)

Build System

3.1.4 (2022-04-11)

Bug Fixes

3.1.3 (2022-01-10)

Bug Fixes

  • deps: update dependency node-forge to v1 (#382) (078735b)

3.1.2 (2021-08-11)

Bug Fixes

3.1.1 (2021-07-21)

Bug Fixes

3.1.0 (2021-06-10)

Features

  • add gcf-owl-bot[bot] to ignoreAuthors (#318) (e93e51b)

3.0.3 (2020-09-02)

Bug Fixes

  • deps: update dependency node-forge to ^0.10.0 (#291) (0694c2e)

3.0.2 (2020-07-09)

Bug Fixes

3.0.1 (2020-04-14)

Bug Fixes

3.0.0 (2020-03-20)

⚠ BREAKING CHANGES

  • typescript@3.7.x introduced backwards incompatibilities
  • drops Node 8 from engines (#242)

Features

Build System

2.0.4 (2020-01-06)

Bug Fixes

  • deps: pin TypeScript below 3.7.0 (81dd96d)

2.0.3 (2019-11-13)

Bug Fixes

2.0.2 (2019-09-06)

Bug Fixes

  • deps: update dependency node-forge to ^0.9.0 (#193) (ecac0f4)
  • docs: remove reference-docs anchor (a6ad735)

2.0.1 (2019-06-26)

Bug Fixes

  • docs: link to reference docs section on googleapis.dev (#184) (a08353b)

2.0.0 (2019-05-02)

Build System

BREAKING CHANGES

  • upgrade engines field to >=8.10.0 (#167)

v1.0.4

03-12-2019 12:25 PDT

This release includes a new shiny version of node-forge!

Dependencies

  • fix(deps): update dependency node-forge to ^0.8.0 (#137)

Documentation

  • docs: update links in contrib guide (#145)
  • docs: move CONTRIBUTING.md to root (#140)
  • docs: add lint/fix example to contributing guide (#138)

Internal / Testing Changes

  • build: Add docuploader credentials to node publish jobs (#149)
  • build: update release config (#147)
  • build: use node10 to run samples-test, system-test etc (#148)
  • chore(deps): update dependency mocha to v6
  • build: use linkinator for docs test (#144)
  • build: create docs test npm scripts (#143)
  • build: test using @grpc/grpc-js in CI (#142)
  • chore(deps): update dependency eslint-config-prettier to v4 (#135)
  • build: ignore googleapis.com in doc link check (#134)
  • build: check dead links on Kokoro (#132)
  • test: add system test, samples, and sample test (#131)
  • chore(build): inject yoshi automation key (#130)
  • chore: update nyc and eslint configs (#129)
  • chore: fix publish.sh permission +x (#127)
  • fix(build): fix Kokoro release script (#126)
  • build: add Kokoro configs for autorelease (#125)

v1.0.3

12-07-2018 09:50 PST

This is a service release very few updates. The only interesting change is the removal of support for Node.js 4.x and 9.x, both of which are out of LTS support.

Dependencies

  • fix(deps): update dependency pify to v4 (#62)

Documentation

  • docs: clean up the readme (#121)

Internal / Testing Changes

  • chore: basic cleanup (#122)
  • chore: always nyc report before calling codecov (#120)
  • chore: nyc ignore build/test by default (#119)
  • chore(build): update templates and synth (#117)
  • fix(build): fix system key decryption (#112)
  • chore(deps): update dependency typescript to ~3.2.0 (#111)
  • chore: add synth.metadata
  • chore(deps): update dependency gts to ^0.9.0 (#106)
  • chore: update eslintignore config (#105)
  • chore: use latest npm on Windows (#104)
  • chore: update CircleCI config (#103)
  • chore: include build in eslintignore (#100)
  • chore: update issue templates (#96)
  • chore: remove old issue template (#94)
  • build: run tests on node11 (#93)
  • chores(build): run codecov on continuous builds (#88)
  • chores(build): do not collect sponge.xml from windows builds (#90)
  • chore(deps): update dependency typescript to ~3.1.0 (#89)
  • chore: update new issue template (#87)
  • build: fix codecov uploading on Kokoro (#84)
  • Update kokoro config (#81)
  • Run system tests on Kokoro (#78)
  • Don't publish sourcemaps (#79)
  • test: remove appveyor config (#77)
  • Update CI config (#76)
  • Enable prefer-const in the eslint config (#75)
  • Enable no-var in eslint (#74)
  • Update CI config (#73)
  • Retry npm install in CI (#71)
  • Update CI config (#69)
  • Update CI config (#68)
  • Update github templates and CircleCI config (#67)
  • chore(deps): update dependency nyc to v13 (#65)
  • add synth file and standardize config (#64)
  • chore: ignore package-log.json (#61)
  • chore: update renovate config (#59)
  • chore(deps): lock file maintenance (#60)
  • chore: remove greenkeeper badge (#58)
  • test: throw on deprecation
  • chore: move mocha options to mocha.opts (#54)
  • chore(deps): update dependency typescript to v3 (#56)
  • chore(deps): lock file maintenance (#55)
  • chore(deps): lock file maintenance (#53)
  • chore(deps): update dependency gts to ^0.8.0 (#49)
  • test: use strictEqual in tests (#51)
  • chore(deps): update dependency typescript to ~2.9.0 (#50)
  • chore: Configure Renovate (#48)
  • fix: drop support for node.js 4.x and 9.x (#46)
  • Add Code of Conduct
  • chore(package): update gts to the latest version (#45)
  • chore(package): update nyc to version 12.0.2 (#42)
  • chore: upgrade to the latest version of all dependencies (#39)
  • chore(build): run lint as a separate job (#40)
  • fix: pin gts version with ^ (#38)
  • chore(package): update @types/node to version 10.0.3 (#34)
  • chore: start testing on node 10 (#36)
  • chore(package): update @types/mocha to version 5.0.0 (#33)