Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - Copying a Public Certificate to Base64 CER file.

Reply
 
Old 4 Weeks Ago   #1 (permalink)
Stephen Yorke


 
 

Copying a Public Certificate to Base64 CER file.

Does anyone know of a way that I can use VBScript to get a copy of the Public
Key from a server using VBScript?

Mainly, this is what I want to do. I have an application which uses a Java
KEYSTORE to store its 'Trusted Certificates'. To get the server certificate,
you need to either grab the actual .CRT file from a server or launch a
browser to the server over HTTPS (https://<server_name>), save the
certificate and then import it. Here is where the problem arises. With
Windows Server 2008, the Firewall is enabled by default so grabbing the file
is not the easiest way to get the job done. What I am looking to do is some
how grab the TCP/HTTPS Stream which contains the certificate, save this
certificate stream to a Base64 CER/CRT file and then use the rest of my
script to actually import this to the Java Keystore.

I have searched high and low and maybe I am just not typing the proper
searches in. I can not find a whole lot in MSDN on this type of topic, ETC.
so I am here looking for some help.

If you need additional information, please do not hesitate to ask.

Thanks in advance,
-Stephen

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Xml, Recursion and Base64 PowerShell
Base64 and .gif PowerShell
Convert to & from base64 String PowerShell
copying a file creates the wrong file ! Vista file management
WMDC Changes File Date When copying file to Laptop Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46