This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pkcs12): move to
expo/expo
(#4794)
- Loading branch information
Showing
10 changed files
with
2 additions
and
4,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,6 @@ jobs: | |
babel-preset-cli, | ||
expo-cli, | ||
expo-codemod, | ||
pkcs12, | ||
pwa, | ||
# webpack-config, | ||
xdl, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,7 +39,6 @@ jobs: | |
babel-preset-cli, | ||
expo-cli, | ||
expo-codemod, | ||
pkcs12, | ||
pwa, | ||
webpack-config, | ||
xdl, | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,3 @@ | ||
<!-- Title --> | ||
<h1 align="center"> | ||
👋 Welcome to <br><code>@expo/pkcs12</code> | ||
</h1> | ||
# `@expo/pkcs12` | ||
|
||
<p align="center">PKCS#12 utility functions to extract certificates from conventional and keystore PKCS#12 files | ||
.</p> | ||
|
||
<p align="center"> | ||
<img src="https://flat.badgen.net/packagephobia/install/@expo/pkcs12"> | ||
|
||
<a href="https://www.npmjs.com/package/@expo/pkcs12"> | ||
<img src="https://flat.badgen.net/npm/dw/@expo/pkcs12" target="_blank" /> | ||
</a> | ||
</p> | ||
|
||
<!-- Body --> | ||
|
||
# Examples | ||
|
||
## Extracting a certificate from a conventional PKCS#12 file | ||
|
||
```js | ||
const p12 = parsePKCS12(base64EncodedP12, password); // deserializes encodedP12 | ||
const certificate = getX509Certificate(p12); // extracts single certificate from p12 | ||
const sha1Fingerprint = getCertificateFingerprint(certificate, { | ||
hashAlgorithm: 'sha1', | ||
}); // Hash like 02ec75a7181c575757baa931fe3105b7125ff10a | ||
``` | ||
|
||
## Extracting a certificate from a keystore in a PKCS#12 file | ||
|
||
```js | ||
const p12 = parsePKCS12(base64EncodedP12, password); // deserializes encodedP12 | ||
const certificate = getX509CertificateByFriendlyName(p12, alias); // extracts single certificate stored under alias in p12 | ||
const sha1Fingerprint = getCertificateFingerprint(certificate, { | ||
hashAlgorithm: 'sha1', | ||
}); // Hash like 02ec75a7181c575757baa931fe3105b7125ff10a | ||
``` | ||
This package has [moved to the `expo/expo` repo](https://github.com/expo/expo/tree/main/packages/%40expo/pkcs12). |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.