Skip to content

Comments

support for writing X509 requests in DER format#1

Open
afcady wants to merge 8 commits intophotm5:rsa-derfrom
afcady:master
Open

support for writing X509 requests in DER format#1
afcady wants to merge 8 commits intophotm5:rsa-derfrom
afcady:master

Conversation

@afcady
Copy link

@afcady afcady commented Jan 22, 2016

I guess you don't need this patch for your own project, but it probably belongs in your pull request to the upstream.

Actually, it occurred to me when I was looking at the OpenSSL.PEM module that the DER functions logically belong in (a new module named) OpenSSL.DER. Perhaps you would be willing to put them all there?

@photm5
Copy link
Owner

photm5 commented Feb 12, 2016 via email

@afcady
Copy link
Author

afcady commented Feb 12, 2016

From what I can tell, there’s a PR for DER in X509 already: depressed-pho#39

That code is already merged into my PR here -- see afcady@9c2f05c). (I did that so I could change from String to ByteString, because decoding the binary DER data into a String can throw an exception if the string is not valid unicode).

But note that that PR is actually about X509 certificates whereas the code that I needed (and wrote myself, as opposed to merely merging) was for X509 certificate requests.

(Also, at the time that I made this PR, I had not yet merged @newsham 's code, so maybe you saw it back then.)

I generally don’t like to include other people’s code in my PRs when they’re just adding to it and not fixing my mistakes. What I added is useful on its own outside of X509.

Fair enough. I was just hoping to relinquish responsibility as easily as possible for myself, of course. It does not look like HsOpenSSL devs are responsive to PRs, so that I was hoping someone else -- already committed to dealing with them -- would take on the baton and I could forget about it.

Anyway, do note, this PR to you does incorporate all of the DER functionality in both of the PRs (yours and @newsham 's) plus what I added. Of course you should do as you please, but to me it seems logical that if one should do any reorganization of modules, it would be based on this PR.

@afcady
Copy link
Author

afcady commented Feb 12, 2016

I went ahead and made PR depressed-pho#49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants