forked from neofreko/cert-downloader
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Patrick
committed
Jun 8, 2015
1 parent
fcd09c4
commit fb58723
Showing
2 changed files
with
38 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ Inspired by Silas Knobel <[email protected]> | |
/** | ||
* CertDownloader([options]). | ||
* Construct a new CertDownloader. | ||
* | ||
* | ||
* `options` overrides one or several defaults and should be in JSON format | ||
* with any of the following options: | ||
* `certName`: name of the certificate (default is `AppleIncRootCertificate.cer`) | ||
|
@@ -56,7 +56,7 @@ function CertDownloader(options) { | |
|
||
/** | ||
* Retrieve the certificate. | ||
* | ||
* | ||
* Attempts to download a missing certificate and returns the path to said | ||
* certificate if available (either cached or downloaded). | ||
* The callback gets two arguments (err, path), where path is a string to | ||
|
@@ -84,7 +84,7 @@ CertDownloader.prototype.cert = function (callback) { | |
|
||
/** | ||
* Retrieve the certificate in PEM format. | ||
* | ||
* | ||
* Attempts to download and convert a missing certificate and returns the | ||
* path to said certificate if available (either cached or converted). | ||
* The callback gets two arguments (err, path), where path is a string | ||
|
@@ -120,11 +120,11 @@ CertDownloader.prototype.pem = function (callback) { | |
|
||
/** | ||
* Verifies a file against the certificate. | ||
* | ||
* | ||
* Attempts to download and convert a missing certificate and returns the | ||
* content of the file if succesfully verified. | ||
* content of the file if successfully verified. | ||
* The callback gets two arguments (err, output), where output is the content | ||
* of the file if succesfully verified. | ||
* of the file if successfully verified. | ||
*/ | ||
CertDownloader.prototype.verify = function (file, callback) { | ||
var _this = this; | ||
|
@@ -148,4 +148,4 @@ CertDownloader.prototype.verify = function (file, callback) { | |
}); | ||
}; | ||
|
||
module.exports = CertDownloader; | ||
module.exports = CertDownloader; |