Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
f28c856e
Commit
f28c856e
authored
10 years ago
by
Guenter Knauf
Browse files
Options
Downloads
Patches
Plain Diff
mk-ca-bundle.vbs: switch to new certdata.txt url.
parent
b7daa665
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/mk-ca-bundle.vbs
+5
-6
5 additions, 6 deletions
lib/mk-ca-bundle.vbs
with
5 additions
and
6 deletions
lib/mk-ca-bundle.vbs
+
5
−
6
View file @
f28c856e
...
...
@@ -26,10 +26,9 @@
'* Hacked by Guenter Knauf
'***************************************************************************
Option
Explicit
Const
myVersion
=
"0.3.8"
Const
myUrl
=
"http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1"
Const
myVersion
=
"0.3.9"
Const
myUrl
=
"http://hg.mozilla.org/releases/mozilla-release/raw-file/default/security/nss/lib/ckfw/builtins/certdata.txt"
Const
myOpenssl
=
"openssl.exe"
Const
myCdSavF
=
FALSE
' Flag: save downloaded data to file certdata.txt
...
...
@@ -48,7 +47,7 @@ Set objHttp = WScript.CreateObject("WinHttp.WinHttpRequest.5.1")
If
objHttp
Is
Nothing
Then
Set
objHttp
=
WScript
.
CreateObject
(
"WinHttp.WinHttpRequest"
)
myBase
=
Left
(
WScript
.
ScriptFullName
,
InstrRev
(
WScript
.
ScriptFullName
,
"\"
))
mySelf
=
Left
(
WScript
.
ScriptName
,
InstrRev
(
WScript
.
ScriptName
,
"."
)
-
1
)
&
" "
&
myVersion
myCdFile
=
Mid
(
myUrl
,
InstrRev
(
myUrl
,
"/"
)
+
1
,
InstrRev
(
myUrl
,
"?"
)
-
InstrRev
(
myUrl
,
"/"
)
-
1
)
myCdFile
=
Mid
(
myUrl
,
InstrRev
(
myUrl
,
"/"
)
+
1
)
myCaFile
=
"ca-bundle.crt"
myTmpName
=
InputBox
(
"Enter output filename:"
,
mySelf
,
myCaFile
)
If
Not
(
myTmpName
=
""
)
Then
...
...
@@ -60,8 +59,8 @@ objHttp.SetTimeouts 0, 5000, 10000, 10000
objHttp
.
Open
"GET"
,
myUrl
,
FALSE
objHttp
.
setRequestHeader
"User-Agent"
,
WScript
.
ScriptName
&
"/"
&
myVersion
objHttp
.
Send
""
If
Not
(
objHttp
.
s
tatus
Text
=
"OK"
)
Then
MsgBox
(
"Failed to download '"
&
myCdFile
&
"': "
&
objHttp
.
s
tatusText
),
vbCritical
,
mySelf
If
Not
(
objHttp
.
S
tatus
=
200
)
Then
MsgBox
(
"Failed to download '"
&
myCdFile
&
"': "
&
objHttp
.
Status
&
" - "
&
objHttp
.
S
tatusText
),
vbCritical
,
mySelf
WScript
.
Quit
1
End
If
' Convert data from ResponseBody instead of using ResponseText because of UTF-8
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment