Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
refactor(pkcs12): move to expo/expo (#4794)
Browse files Browse the repository at this point in the history
  • Loading branch information
byCedric committed Dec 11, 2023
1 parent f922410 commit dde5f78
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 4,528 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
babel-preset-cli,
expo-cli,
expo-codemod,
pkcs12,
pwa,
# webpack-config,
xdl,
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ jobs:
babel-preset-cli,
expo-cli,
expo-codemod,
pkcs12,
pwa,
webpack-config,
xdl,
Expand Down
2 changes: 0 additions & 2 deletions packages/pkcs12/.eslintignore

This file was deleted.

40 changes: 2 additions & 38 deletions packages/pkcs12/README.md
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).
7 changes: 0 additions & 7 deletions packages/pkcs12/jest.config.js

This file was deleted.

35 changes: 0 additions & 35 deletions packages/pkcs12/package.json

This file was deleted.

Loading

0 comments on commit dde5f78

Please sign in to comment.