Allow DER encoding #1

Closed
opened 2018-12-30 23:10:51 +00:00 by Ghost · 2 comments

Hi, it would be nice to have CSR in DER format supported. I saw a branch that has already worked on this feature. Any plan to merge it soon?

Hi, it would be nice to have CSR in DER format supported. I saw a branch that has already worked on this feature. Any plan to merge it soon?
Owner

You already can, I think.

var PEM = require('rsa-csr/lib/pem');

var der = PEM.parseBlock(pem).bytes;

Let me know if that doesn’t work (AFK at the moment).

You already can, I think. ```js var PEM = require('rsa-csr/lib/pem'); var der = PEM.parseBlock(pem).bytes; ``` Let me know if that doesn’t work (AFK at the moment).
Author

There is no parseBlock function on rsa-csr/lib/pem. BTW I was able to get a CSR in DER by using the rsaCSR.create function directly. Thanks.

There is no `parseBlock` function on `rsa-csr/lib/pem`. BTW I was able to get a CSR in DER by using the `rsaCSR.create` function directly. Thanks.
Ghost closed this issue 2019-01-02 22:17:24 +00:00
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/rsa-csr.js#1
No description provided.