Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: get rid of native OpenSSL dependency #265

Merged
merged 1 commit into from
Sep 10, 2018
Merged

Conversation

edvald
Copy link
Collaborator

@edvald edvald commented Sep 8, 2018

By removing the x509 library, in favor of the (admittedly odd) certpem/pkijs libs

Closes #261

drubin
drubin previously requested changes Sep 8, 2018
])
// Note: Can't use the certpem.info() method here because of multiple bugs.
// And yes, this API is insane. Crypto people are bonkers. Seriously. - JE
const certInfo = certpem.debug(crtData)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My js isn't that good but I think debug is an alias for getCertInfo maybe we can use that so it makes more logical sense?

https://git.coolaj86.com/coolaj86/cert-info.js/src/branch/master/index.js#L68

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What bugs does info create? Feels like we just copied their code excluding the common name field?

@@ -28,6 +28,7 @@
"async-lock": "^1.1.3",
"axios": "^0.18.0",
"bluebird": "^3.5.1",
"certpem": "^1.1.2",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think considering how little we use the native implementation this is a good way for now, also native openssl is always a screw up with miss matched versioning so anything that avoids this feels good.

@eysi09 eysi09 self-assigned this Sep 10, 2018
@eysi09 eysi09 dismissed drubin’s stale review September 10, 2018 12:34

I'd like to include this PR in our next release and the issues raised above aren't a stopper

@eysi09 eysi09 merged commit fa1fd9d into master Sep 10, 2018
@eysi09 eysi09 deleted the no-native-openssl branch September 10, 2018 12:35
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