Initial import from local backup (Documents-Playground/pakerpale)

This commit is contained in:
jeonghwa
2026-07-03 05:27:45 +09:00
commit 95f2ab1713
2784 changed files with 1066361 additions and 0 deletions

127
node_modules/google-p12-pem/CHANGELOG.md generated vendored Normal file
View File

@@ -0,0 +1,127 @@
# Changelog
[npm history][1]
[1]: https://www.npmjs.com/package/google-p12-pem?activeTab=versions
### [2.0.1](https://www.github.com/googleapis/google-p12-pem/compare/v2.0.0...v2.0.1) (2019-06-26)
### Bug Fixes
* **docs:** link to reference docs section on googleapis.dev ([#184](https://www.github.com/googleapis/google-p12-pem/issues/184)) ([a08353b](https://www.github.com/googleapis/google-p12-pem/commit/a08353b))
## [2.0.0](https://www.github.com/google/google-p12-pem/compare/v1.0.4...v2.0.0) (2019-05-02)
### Build System
* upgrade engines field to >=8.10.0 ([#167](https://www.github.com/google/google-p12-pem/issues/167)) ([85da6e6](https://www.github.com/google/google-p12-pem/commit/85da6e6))
### 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](https://github.com/google/google-p12-pem/pull/137))
### Documentation
- docs: update links in contrib guide ([#145](https://github.com/google/google-p12-pem/pull/145))
- docs: move CONTRIBUTING.md to root ([#140](https://github.com/google/google-p12-pem/pull/140))
- docs: add lint/fix example to contributing guide ([#138](https://github.com/google/google-p12-pem/pull/138))
### Internal / Testing Changes
- build: Add docuploader credentials to node publish jobs ([#149](https://github.com/google/google-p12-pem/pull/149))
- build: update release config ([#147](https://github.com/google/google-p12-pem/pull/147))
- build: use node10 to run samples-test, system-test etc ([#148](https://github.com/google/google-p12-pem/pull/148))
- chore(deps): update dependency mocha to v6
- build: use linkinator for docs test ([#144](https://github.com/google/google-p12-pem/pull/144))
- build: create docs test npm scripts ([#143](https://github.com/google/google-p12-pem/pull/143))
- build: test using @grpc/grpc-js in CI ([#142](https://github.com/google/google-p12-pem/pull/142))
- chore(deps): update dependency eslint-config-prettier to v4 ([#135](https://github.com/google/google-p12-pem/pull/135))
- build: ignore googleapis.com in doc link check ([#134](https://github.com/google/google-p12-pem/pull/134))
- build: check dead links on Kokoro ([#132](https://github.com/google/google-p12-pem/pull/132))
- test: add system test, samples, and sample test ([#131](https://github.com/google/google-p12-pem/pull/131))
- chore(build): inject yoshi automation key ([#130](https://github.com/google/google-p12-pem/pull/130))
- chore: update nyc and eslint configs ([#129](https://github.com/google/google-p12-pem/pull/129))
- chore: fix publish.sh permission +x ([#127](https://github.com/google/google-p12-pem/pull/127))
- fix(build): fix Kokoro release script ([#126](https://github.com/google/google-p12-pem/pull/126))
- build: add Kokoro configs for autorelease ([#125](https://github.com/google/google-p12-pem/pull/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](https://github.com/google/google-p12-pem/pull/62))
### Documentation
- docs: clean up the readme ([#121](https://github.com/google/google-p12-pem/pull/121))
### Internal / Testing Changes
- chore: basic cleanup ([#122](https://github.com/google/google-p12-pem/pull/122))
- chore: always nyc report before calling codecov ([#120](https://github.com/google/google-p12-pem/pull/120))
- chore: nyc ignore build/test by default ([#119](https://github.com/google/google-p12-pem/pull/119))
- chore(build): update templates and synth ([#117](https://github.com/google/google-p12-pem/pull/117))
- fix(build): fix system key decryption ([#112](https://github.com/google/google-p12-pem/pull/112))
- chore(deps): update dependency typescript to ~3.2.0 ([#111](https://github.com/google/google-p12-pem/pull/111))
- chore: add synth.metadata
- chore(deps): update dependency gts to ^0.9.0 ([#106](https://github.com/google/google-p12-pem/pull/106))
- chore: update eslintignore config ([#105](https://github.com/google/google-p12-pem/pull/105))
- chore: use latest npm on Windows ([#104](https://github.com/google/google-p12-pem/pull/104))
- chore: update CircleCI config ([#103](https://github.com/google/google-p12-pem/pull/103))
- chore: include build in eslintignore ([#100](https://github.com/google/google-p12-pem/pull/100))
- chore: update issue templates ([#96](https://github.com/google/google-p12-pem/pull/96))
- chore: remove old issue template ([#94](https://github.com/google/google-p12-pem/pull/94))
- build: run tests on node11 ([#93](https://github.com/google/google-p12-pem/pull/93))
- chores(build): run codecov on continuous builds ([#88](https://github.com/google/google-p12-pem/pull/88))
- chores(build): do not collect sponge.xml from windows builds ([#90](https://github.com/google/google-p12-pem/pull/90))
- chore(deps): update dependency typescript to ~3.1.0 ([#89](https://github.com/google/google-p12-pem/pull/89))
- chore: update new issue template ([#87](https://github.com/google/google-p12-pem/pull/87))
- build: fix codecov uploading on Kokoro ([#84](https://github.com/google/google-p12-pem/pull/84))
- Update kokoro config ([#81](https://github.com/google/google-p12-pem/pull/81))
- Run system tests on Kokoro ([#78](https://github.com/google/google-p12-pem/pull/78))
- Don't publish sourcemaps ([#79](https://github.com/google/google-p12-pem/pull/79))
- test: remove appveyor config ([#77](https://github.com/google/google-p12-pem/pull/77))
- Update CI config ([#76](https://github.com/google/google-p12-pem/pull/76))
- Enable prefer-const in the eslint config ([#75](https://github.com/google/google-p12-pem/pull/75))
- Enable no-var in eslint ([#74](https://github.com/google/google-p12-pem/pull/74))
- Update CI config ([#73](https://github.com/google/google-p12-pem/pull/73))
- Retry npm install in CI ([#71](https://github.com/google/google-p12-pem/pull/71))
- Update CI config ([#69](https://github.com/google/google-p12-pem/pull/69))
- Update CI config ([#68](https://github.com/google/google-p12-pem/pull/68))
- Update github templates and CircleCI config ([#67](https://github.com/google/google-p12-pem/pull/67))
- chore(deps): update dependency nyc to v13 ([#65](https://github.com/google/google-p12-pem/pull/65))
- add synth file and standardize config ([#64](https://github.com/google/google-p12-pem/pull/64))
- chore: ignore package-log.json ([#61](https://github.com/google/google-p12-pem/pull/61))
- chore: update renovate config ([#59](https://github.com/google/google-p12-pem/pull/59))
- chore(deps): lock file maintenance ([#60](https://github.com/google/google-p12-pem/pull/60))
- chore: remove greenkeeper badge ([#58](https://github.com/google/google-p12-pem/pull/58))
- test: throw on deprecation
- chore: move mocha options to mocha.opts ([#54](https://github.com/google/google-p12-pem/pull/54))
- chore(deps): update dependency typescript to v3 ([#56](https://github.com/google/google-p12-pem/pull/56))
- chore(deps): lock file maintenance ([#55](https://github.com/google/google-p12-pem/pull/55))
- chore(deps): lock file maintenance ([#53](https://github.com/google/google-p12-pem/pull/53))
- chore(deps): update dependency gts to ^0.8.0 ([#49](https://github.com/google/google-p12-pem/pull/49))
- test: use strictEqual in tests ([#51](https://github.com/google/google-p12-pem/pull/51))
- chore(deps): update dependency typescript to ~2.9.0 ([#50](https://github.com/google/google-p12-pem/pull/50))
- chore: Configure Renovate ([#48](https://github.com/google/google-p12-pem/pull/48))
- fix: drop support for node.js 4.x and 9.x ([#46](https://github.com/google/google-p12-pem/pull/46))
- Add Code of Conduct
- chore(package): update gts to the latest version ([#45](https://github.com/google/google-p12-pem/pull/45))
- chore(package): update nyc to version 12.0.2 ([#42](https://github.com/google/google-p12-pem/pull/42))
- chore: upgrade to the latest version of all dependencies ([#39](https://github.com/google/google-p12-pem/pull/39))
- chore(build): run lint as a separate job ([#40](https://github.com/google/google-p12-pem/pull/40))
- fix: pin gts version with ^ ([#38](https://github.com/google/google-p12-pem/pull/38))
- chore(package): update @types/node to version 10.0.3 ([#34](https://github.com/google/google-p12-pem/pull/34))
- chore: start testing on node 10 ([#36](https://github.com/google/google-p12-pem/pull/36))
- chore(package): update @types/mocha to version 5.0.0 ([#33](https://github.com/google/google-p12-pem/pull/33))

21
node_modules/google-p12-pem/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2014 Ryan Seys
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

123
node_modules/google-p12-pem/README.md generated vendored Normal file
View File

@@ -0,0 +1,123 @@
[//]: # "This README.md file is auto-generated, all changes to this file will be lost."
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>
# [google-p12-pem: Node.js Client](https://github.com/googleapis/google-p12-pem)
[![release level](https://img.shields.io/badge/release%20level-general%20availability%20%28GA%29-brightgreen.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/google-p12-pem.svg)](https://www.npmjs.org/package/google-p12-pem)
[![codecov](https://img.shields.io/codecov/c/github/googleapis/google-p12-pem/master.svg?style=flat)](https://codecov.io/gh/googleapis/google-p12-pem)
Convert Google .p12 keys to .pem keys.
* [github.com/googleapis/google-p12-pem](https://github.com/googleapis/google-p12-pem)
Read more about the client libraries for Cloud APIs, including the older
Google APIs Client Libraries, in [Client Libraries Explained][explained].
[explained]: https://cloud.google.com/apis/docs/client-libraries-explained
**Table of contents:**
* [Quickstart](#quickstart)
* [Installing the client library](#installing-the-client-library)
* [Using the client library](#using-the-client-library)
* [Samples](#samples)
* [Versioning](#versioning)
* [Contributing](#contributing)
* [License](#license)
## Quickstart
### Installing the client library
```bash
npm install google-p12-pem
```
### Using the client library
```javascript
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
``` sh
gp12-pem myfile.p12 > output.pem
```
## Samples
Samples are in the [`samples/`](https://github.com/googleapis/google-p12-pem/tree/master/samples) directory. The samples' `README.md`
has instructions for running the samples.
| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Quickstart | [source code](https://github.com/googleapis/google-p12-pem/blob/master/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-p12-pem&page=editor&open_in_editor=samples/quickstart.js,samples/README.md) |
## Versioning
This library follows [Semantic Versioning](http://semver.org/).
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][launch_stages]
[launch_stages]: https://cloud.google.com/terms/launch-stages
## Contributing
Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/google-p12-pem/blob/master/CONTRIBUTING.md).
## License
Apache Version 2.0
See [LICENSE](https://github.com/googleapis/google-p12-pem/blob/master/LICENSE)
[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png
[projects]: https://console.cloud.google.com/project
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
[auth]: https://cloud.google.com/docs/authentication/getting-started
<a name="reference"></a>

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env node
/**
* Copyright 2018 Google LLC
*
* Distributed under MIT license.
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
export {};

26
node_modules/google-p12-pem/build/src/bin/gp12-pem.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env node
"use strict";
/**
* Copyright 2018 Google LLC
*
* Distributed under MIT license.
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
const gp12 = require("../index");
const argv = process.argv;
const p12Path = argv[2];
if (!p12Path) {
console.error('Please specify a *.p12 file to convert.');
process.exit(1);
}
gp12.getPem(p12Path, (err, pem) => {
if (err) {
console.log(err);
process.exit(1);
}
else {
console.log(pem);
}
});
//# sourceMappingURL=gp12-pem.js.map

15
node_modules/google-p12-pem/build/src/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,15 @@
/**
* Copyright 2018 Google LLC
*
* Distributed under MIT license.
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
/**
* Convert a .p12 file to .pem string
* @param filename The .p12 key filename.
* @param callback The callback function.
* @return A promise that resolves with the .pem private key
* if no callback provided.
*/
export declare function getPem(filename: string): Promise<string>;
export declare function getPem(filename: string, callback: (err: Error | null, pem: string | null) => void): void;

48
node_modules/google-p12-pem/build/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,48 @@
"use strict";
/**
* Copyright 2018 Google LLC
*
* Distributed under MIT license.
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
*/
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const forge = require("node-forge");
const util_1 = require("util");
const readFile = util_1.promisify(fs.readFile);
function getPem(filename, callback) {
if (callback) {
getPemAsync(filename)
.then(pem => callback(null, pem))
.catch(err => callback(err, null));
}
else {
return getPemAsync(filename);
}
}
exports.getPem = getPem;
function getPemAsync(filename) {
return readFile(filename, { encoding: 'base64' }).then(keyp12 => {
return convertToPem(keyp12);
});
}
/**
* Converts a P12 in base64 encoding to a pem.
* @param p12base64 String containing base64 encoded p12.
* @returns a string containing the pem.
*/
function convertToPem(p12base64) {
const p12Der = forge.util.decode64(p12base64);
const p12Asn1 = forge.asn1.fromDer(p12Der);
const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret');
const bags = p12.getBags({ friendlyName: 'privatekey' });
if (bags.friendlyName) {
const privateKey = bags.friendlyName[0].key;
const pem = forge.pki.privateKeyToPem(privateKey);
return pem.replace(/\r\n/g, '\n');
}
else {
throw new Error('Unable to get friendly name.');
}
}
//# sourceMappingURL=index.js.map

95
node_modules/google-p12-pem/package.json generated vendored Normal file
View File

@@ -0,0 +1,95 @@
{
"_from": "google-p12-pem@^2.0.0",
"_id": "google-p12-pem@2.0.1",
"_inBundle": false,
"_integrity": "sha512-6h6x+eBX3k+IDSe/c8dVYmn8Mzr1mUcmKC9MdUSwaBkFAXlqBEnwFWmSFgGC+tcqtsLn73BDP/vUNWEehf1Rww==",
"_location": "/google-p12-pem",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "google-p12-pem@^2.0.0",
"name": "google-p12-pem",
"escapedName": "google-p12-pem",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/gtoken"
],
"_resolved": "https://registry.npmjs.org/google-p12-pem/-/google-p12-pem-2.0.1.tgz",
"_shasum": "509f9415e50c9bdf76de8150a825f9e97cba2c57",
"_spec": "google-p12-pem@^2.0.0",
"_where": "D:\\dev\\crossmap\\backend-services\\cm-app-youtube\\node_modules\\gtoken",
"author": {
"name": "Ryan Seys"
},
"bin": {
"gp12-pem": "build/src/bin/gp12-pem.js"
},
"bugs": {
"url": "https://github.com/google/google-p12-pem/issues"
},
"bundleDependencies": false,
"dependencies": {
"node-forge": "^0.8.0"
},
"deprecated": false,
"description": "Convert Google .p12 keys to .pem keys.",
"devDependencies": {
"@compodoc/compodoc": "^1.1.7",
"@types/mocha": "^5.2.0",
"@types/node": "^10.0.9",
"@types/node-forge": "^0.8.0",
"codecov": "^3.0.2",
"eslint": "^5.11.0",
"eslint-config-prettier": "^4.0.0",
"eslint-plugin-node": "^9.0.0",
"eslint-plugin-prettier": "^3.0.0",
"gts": "^1.0.0",
"intelli-espower-loader": "^1.0.1",
"js-green-licenses": "^1.0.0",
"linkinator": "^1.1.2",
"mocha": "^6.0.0",
"nyc": "^14.0.0",
"prettier": "^1.15.3",
"source-map-support": "^0.5.6",
"typescript": "~3.5.0"
},
"engines": {
"node": ">=8.10.0"
},
"files": [
"build/src",
"!build/src/**/*.map"
],
"homepage": "https://github.com/google/google-p12-pem#readme",
"license": "MIT",
"main": "./build/src/index.js",
"name": "google-p12-pem",
"repository": {
"type": "git",
"url": "git+https://github.com/google/google-p12-pem.git"
},
"scripts": {
"check": "gts check && npm run license-check",
"clean": "gts clean",
"compile": "tsc -p .",
"docs": "compodoc src/",
"docs-test": "linkinator docs -r --skip www.googleapis.com",
"fix": "gts fix && eslint --fix '**/*.js'",
"license-check": "jsgl --local .",
"lint": "gts check && eslint '**/*.js'",
"posttest": "npm run check",
"predocs-test": "npm run docs",
"prepare": "npm run compile",
"presystem-test": "npm run compile",
"pretest": "npm run compile",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "mocha build/system-test",
"test": "nyc mocha build/test"
},
"types": "./build/src/index.d.ts",
"version": "2.0.1"
}