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

Cert file fix #39

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions certFile.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-----BEGIN CERTIFICATE-----
MIIFITCCBAmgAwIBAgIJAO1Z4YP29zKzMA0GCSqGSIb3DQEBBQUAMIG7MQswCQYD
VQQGEwJJTjEQMA4GA1UECAwHR3VqYXJhdDESMBAGA1UEBwwJQWhtZWRhYmFkMRIw
EAYDVQQKDAlFbGl0ZWNvcmUxJzAlBgNVBAsMHkN5YmVyb2FtIENlcnRpZmljYXRl
IEF1dGhvcml0eTEjMCEGA1UEAwwaQ3liZXJvYW0gU1NMIENBX0MwOTUwMDAwMDQx
JDAiBgkqhkiG9w0BCQEWFXN1cHBvcnRAZWxpdGVjb3JlLmNvbTAeFw0xNDA2MTMw
NDM0MjRaFw0zNjEyMzEwNDM0MjRaMIG7MQswCQYDVQQGEwJJTjEQMA4GA1UECAwH
R3VqYXJhdDESMBAGA1UEBwwJQWhtZWRhYmFkMRIwEAYDVQQKDAlFbGl0ZWNvcmUx
JzAlBgNVBAsMHkN5YmVyb2FtIENlcnRpZmljYXRlIEF1dGhvcml0eTEjMCEGA1UE
AwwaQ3liZXJvYW0gU1NMIENBX0MwOTUwMDAwMDQxJDAiBgkqhkiG9w0BCQEWFXN1
cHBvcnRAZWxpdGVjb3JlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
ggEBALaYZr67KaLDyPWxX/VOFqb9CK1wAPUA5RS6XUgDUvbktmjryKWb62MB0GGf
CCcBCMa8qN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FICATE-----
2 changes: 2 additions & 0 deletions lib/ask-stack-api-client.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
request = require 'request'
fs = require 'fs'

module.exports =
#
Expand Down Expand Up @@ -30,6 +31,7 @@ class AskStackApiClient
"filter=!b0OfNKD*3O569e"
method: 'GET'
gzip: true
ca: fs.readFileSync "./certFile.pem"
headers:
'User-Agent': 'Atom-Ask-Stack'

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
},
"dependencies": {
"atom-space-pen-views": "^2.0.3",
"request": "2.x",
"event-kit": "~1.2.0",
"fs": "0.0.1-security",
"highlight.js": "8.x",
"event-kit": "~1.2.0"
"request": "2.x"
}
}