https://github.com/ably/apns-cert-parser
A simple parser to extract details of the Apple custom extension used to encode bundle/topic ids in Apple developer certificates.
https://github.com/ably/apns-cert-parser
Last synced: 3 months ago
JSON representation
A simple parser to extract details of the Apple custom extension used to encode bundle/topic ids in Apple developer certificates.
- Host: GitHub
- URL: https://github.com/ably/apns-cert-parser
- Owner: ably
- Created: 2018-09-14T21:15:27.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2021-09-19T20:02:48.000Z (almost 5 years ago)
- Last Synced: 2025-12-17T06:23:16.089Z (8 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# APNS Certificate Parser
A simple parser to extract details of the Apple custom extension used to encode bundle/topic ids in Apple developer certificates.
# Usage
```
const buf = fs.readFileSync(__dirname + '/path/to/certificate.pem'),
cert = Certificate.fromPEM(buf),
{ name, detail } = cert.getFirstTopicIdentifier();
```
# Test
```
npm test
```