Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobbubu/openssl-dn-parser
Non-strict openssl style distinguished name parser.
https://github.com/jacobbubu/openssl-dn-parser
Last synced: 15 days ago
JSON representation
Non-strict openssl style distinguished name parser.
- Host: GitHub
- URL: https://github.com/jacobbubu/openssl-dn-parser
- Owner: jacobbubu
- Created: 2017-04-17T10:49:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T10:50:16.000Z (almost 8 years ago)
- Last Synced: 2024-12-14T01:38:02.663Z (about 2 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# openssl-dn-parser
This is a non-strict openssl style distinguished name parser.
## Usage
``` bash
npm i openssl-dn-parser --save
`````` js
var dnParser = require('./lib/parser');
var subject = '/C=CN/ST=Beijing Shi/O=SkinAT/OU=web/CN=\\xE8\\xAF\\x97\\xE4\\xBE\\xAC/[email protected]';
console.log(dnParser(subject));/*
{ C: 'CN',
ST: 'Beijing Shi',
O: 'SkinAT',
OU: 'web',
CN: '诗侬',
emailAddress: '[email protected]' }
*/
```I've not found the specification of OpenSSL distinguished name, just write the parser by guessing. I'd really appreciate that anyone can give me a clue about the spec..