Skip to content

Commit

Permalink
#12 x509 certificates not parseable by Go TLS
Browse files Browse the repository at this point in the history
Reviewed by: Cody Mello <[email protected]>
  • Loading branch information
Alex Wilson committed Jul 30, 2016
1 parent 079f792 commit a8b7943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/formats/x509.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ function writeTBSCert(cert, der) {
der.writeInt(2);
der.endSequence();

der.writeBuffer(cert.serial, asn1.Ber.Integer);
der.writeBuffer(utils.mpNormalize(cert.serial), asn1.Ber.Integer);

der.startSequence();
der.writeOID(SIGN_ALGS[sig.algo]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sshpk",
"version": "1.9.1",
"version": "1.9.2",
"description": "A library for finding and using SSH public keys",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit a8b7943

Please sign in to comment.