[Q] Best way to test XML files for XDAUC - Touch Pro2, Tilt 2 Windows Mobile ROM Development

So, I'm trying to develop my own XML file for XDA_UC, but I don't have a really efficient way of doing this. Could someone tell me how they do it?
My primary goal is to move shortcuts. Can I accomplish that task by this:
Code:
<characteristic type="%CE2%\Start Menu\Programs\Tools" translation="install">
<characteristic type="MakeDir" />
<characteristic type="CHTEditor.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\CHTEditor.lnk" translation="install"/>
</characteristic>
</characteristic>
Thanks
Smith

smithisize said:
So, I'm trying to develop my own XML file for XDA_UC, but I don't have a really efficient way of doing this. Could someone tell me how they do it?
My primary goal is to move shortcuts. Can I accomplish that task by this:
Code:
<characteristic type="%CE2%\Start Menu\Programs\Tools" translation="install">
<characteristic type="MakeDir" />
<characteristic type="CHTEditor.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\CHTEditor.lnk" translation="install"/>
</characteristic>
</characteristic>
Thanks
Smith
Click to expand...
Click to collapse
I don't know if this answer is of any help, but in the valkyre roms we use silent_uc. This works with any rom with mortscript cooked in.
http://forum.xda-developers.com/showpost.php?p=4699952&postcount=5
You just copy the files from the start menu to your sd card in the map silent_uc/root/windows/start menu en it will install. I think that it's much easier then making a .xml Just a suggestion.

Lennyz1988 said:
I don't know if this answer is of any help, but in the valkyre roms we use silent_uc. This works with any rom with mortscript cooked in.
http://forum.xda-developers.com/showpost.php?p=4699952&postcount=5
You just copy the files from the start menu to your sd card in the map silent_uc/root/windows/start menu en it will install. I think that it's much easier then making a .xml Just a suggestion.
Click to expand...
Click to collapse
Great advice, I guess I didn't know silentUC could do that. Too bad Valkyrie is the only ROM (that I've ever really seen, I guess) that uses it. If simplicity or energy used it, that would be awesome.
I haven't played with Valkyrie much, but when I did it was beta Cookie-FX 23xxx and it was very, very slow (that was like a week ago). Was that just a fluke? Is it normally a good ROM?
Regards
Smith

In Energy roms its in XDA_UC\Start Menu\.

XirXes said:
In Energy roms its in XDA_UC\Start Menu\.
Click to expand...
Click to collapse
Will that move shortcuts though? Say, from the root of the start menu to start menu\tools?
Thanks
Smith

Related

CAB files for MMS folder and Cingular settings inside!

Hey everyone,
I've attached two CAB files for everyones use.
Custom-MMS1-Install-for-MMS.CAB - This CAB file actually creates the the MMS folder. It does not contain any settings.
cingular mms.cab - This CAB file contains the settings for Cingular's MMS. It addresses the small image sizes as well. Normally you get "thumbnail" size images if you manually configure and don't use the extended ROM install. This fixes that.
Hope they're helpful..
Cheers!
thanks. good stuff. do you have the gprs ones as well?
it would be great if you had both MMS settings plus the GPRS all wrapped up in one package. please do
I will likely do a separate CAB for those. I generally use the isp.cingular and I know a lot of people do not. I'll try to get off me arse tonight and do it though.
Great Job but I would like teh settings and mms cab's seprate too.
Althought don't need this right now, I keep it just in case.
What do u mean by creating mms folder?? Will it work on my magician?? I'm bored of that arcsoft thing that waste about 3megs of free ram.. this is only about 70kb!! :shock:
MocciJ
I've got the reg keys extracted for the wap.cingular connection. Does anyone need isp.cingular?
I'm going to keep them as two separate CAB files once I create them, which will be tomorrow morning. I plan on hard resetting my Wizard and testing them first before I put them up here.
MocciJ, the Arcsoft thing needs to be there. All this MMS cab does is create the MMS account with the one cab, then set the settings with the other. Arcsoft is the application that actually does the formatting and such for the MMS messages.
I don't know if it will work on your Magician, but I'm imagining the reg keys are probably the same.
this is great,
Should we do the folder cab first or the mms settings cab first? or does it matter?
somone text'd me last night but i forgot i dont have the settings for that yet on my phone, found out after i talked to them. Running molksi 2.26 <-awesome rom btw.
sk0t said:
I've got the reg keys extracted for the wap.cingular connection. Does anyone need isp.cingular?
I'm going to keep them as two separate CAB files once I create them, which will be tomorrow morning. I plan on hard resetting my Wizard and testing them first before I put them up here.
MocciJ, the Arcsoft thing needs to be there. All this MMS cab does is create the MMS account with the one cab, then set the settings with the other. Arcsoft is the application that actually does the formatting and such for the MMS messages.
I don't know if it will work on your Magician, but I'm imagining the reg keys are probably the same.
Click to expand...
Click to collapse
Skot, got an idea for ya.. i was gonna do this but am still busy with my rom.. i was gonna make the cabs for the connections, both media net and MY isp on cingular, but was going to add the opendns.com dns address's.. since you are already working on this wanna just add that to it?
somone please make it
You bet! I'll add in the OpenDNS servers. Just shoot me the IP's. I'm a little swamped at work this morning (taking a 5 minute breather as it is), so I'll do it for sure this afternoon.
EDIT: NM, I went and got the IP's... I'll be working on this in a bit!
sk0t said:
You bet! I'll add in the OpenDNS servers. Just shoot me the IP's. I'm a little swamped at work this morning (taking a 5 minute breather as it is), so I'll do it for sure this afternoon.
EDIT: NM, I went and got the IP's... I'll be working on this in a bit!
Click to expand...
Click to collapse
excellent, you da man!
I'm almost there too..
I need to figure out how the username/password for the access points are saved. If they're a registry key, I'm not sure which one. The CAB file I created as a test for isp.cingular works though, just no creds for the access point.
Hopefully I'll have it figured out soon..
sk0t said:
I'm almost there too..
I need to figure out how the username/password for the access points are saved. If they're a registry key, I'm not sure which one. The CAB file I created as a test for isp.cingular works though, just no creds for the access point.
Hopefully I'll have it figured out soon..
Click to expand...
Click to collapse
when i stripped away the con cab from cingular there is an XML file in there in which you can edit to your hearts content... lets see if this helps you...
This xml shows the entries in the registry that it creates by default.. let me give you a quick copy/paste from the attached file:
<characteristic type="CM_Networks">
<characteristic type="MEdia Net">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}" />
</characteristic>
</characteristic>
<characteristic type="CM_ProxyEntries">
<characteristic type="HTTP-{97626DCF-818F-4be1-AC7E-77DA1B01F145}">
<parm name="SrcId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}" />
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="Proxy" value="wireless.cingular.com:80" />
<parm name="Type" value="1" />
<parm name="Enable" value="1" />
</characteristic>
<characteristic type="SOCKS-{97626DCF-818F-4be1-AC7E-77DA1B01F145}">
<parm name="SrcId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}" />
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}" />
<parm name="Proxy" value="localhost:1080" />
<parm name="Type" value="4" />
<parm name="Enable" value="1" />
</characteristic>
</characteristic>
<characteristic type="CM_GPRSEntries">
<characteristic type="Cingular GPRS">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}" />
<parm name="Enabled" value="1" />
<parm name="UserName" value="[email protected]" />
<parm name="Password" value="CINGULAR1" />
<parm name="Domain" value="" />
<parm name="AlwaysOn" value="0"/>
<parm name="SpecificIpAddr" value="0" />
<parm name="IpAddr" value="" />
<parm name="SpecificNameServers" value="0" />
<parm name="DnsAddr" value="" />
<parm name="AltDnsAddr" value="" />
<parm name="WinsAddr" value="" />
<parm name="AltWinsAddr" value="" />
<parm name="IpHeaderCompression" value="1" />
<characteristic type="DevSpecificCellular">
<parm name="BearerInfoValid" value="1" />
<parm name="GPRSInfoValid" value="1" />
<parm name="GPRSInfoProtocolType" value="2" />
<parm name="GPRSInfoL2ProtocolType" value="PPP" />
<parm name="GPRSInfoAccessPointName" value="wap.cingular" />
<parm name="GPRSInfoAddress" value="" />
<parm name="GPRSInfoDataCompression" value="1" />
<parm name="GPRSInfoHeaderCompression" value="1" />
<parm name="GPRSInfoParameters" value="" />
</characteristic>
Thing is, I'm not so sure those are registry entries. If they are, where do they go? It doesn't follow the formats of the XML files in the other Extended ROM cabs.
Plus, why wouldn't I find registry entries for the UN/PW?
I'm going to do some more work on this. It's baffling, but I'll figure it out. I think there's something more to it, but I'm just not sure what yet at this point.
I've looked at this a little bit more. I understand what I need to do, but, because I don't understand everything involved completely, I don't think I'm going to be able to do it right away. I need to do some reading and understanding.
If someone else (IE a dev) can create the XML script needed, the rest is gravy. Thing is, it looks like it's actually an XML script that does the provisioning. I'm just not sure what calls it or how.
That's what I"m going to try to figure out..
yeah, i wanted to play around with this but ran out of time this weekend.. i was gonna try just to create the reg entries in a cab and install it to see what happens.. aint gonna hurt to try but im at work now and dont have time to mess with it... let me know what you come up with
I'll definitely keep you updated. I know the reg entries I pulled seemed to create everything properly. They just don't have the creds for the access point.
I may post those for now until I can figure out how to get the creds incorporated. I know it can be done via XML, but I don't understand enough of how to do it yet.. A project for sure..
sk0t said:
I'll definitely keep you updated. I know the reg entries I pulled seemed to create everything properly. They just don't have the creds for the access point.
I may post those for now until I can figure out how to get the creds incorporated. I know it can be done via XML, but I don't understand enough of how to do it yet.. A project for sure..
Click to expand...
Click to collapse
hang on... i know someone who may be able to help.....
Shogunmark - am assuiming you mean me? he he
well - it appears that the XML file is actually like a script - which is executed provided that the xml is called _setup.xml and packaged into cab file.
This page explains it all a lot better than I ever could (it's for exchange but the prinicpal is the same for adding anything to registry)...and god....me linking to a mikeysoft page....whatever next?
http://www.microsoft.com/technet/itsolutions/mobile/deploy/msfp_b.mspx
What I would recommend doing would be to add the access point name in manually - then go check the registry with resco or similar and see which keys are put in and where - from this you should be able to work out where in the XML the files go.
If not an existing section then we may need to do a little work to figure out the GUID of the section that is requried and build a small new section of XML to incoroprate it.
dazzlingdaz said:
Shogunmark - am assuiming you mean me? he he
well - it appears that the XML file is actually like a script - which is executed provided that the xml is called _setup.xml and packaged into cab file.
This page explains it all a lot better than I ever could (it's for exchange but the prinicpal is the same for adding anything to registry)...and god....me linking to a mikeysoft page....whatever next?
http://www.microsoft.com/technet/itsolutions/mobile/deploy/msfp_b.mspx
What I would recommend doing would be to add the access point name in manually - then go check the registry with resco or similar and see which keys are put in and where - from this you should be able to work out where in the XML the files go.
If not an existing section then we may need to do a little work to figure out the GUID of the section that is requried and build a small new section of XML to incoroprate it.
Click to expand...
Click to collapse
of course i ment you... your the only one that i know of that can read xml and understand xml like its nothing

Trying to write cab to change registry

Hi
Just a false noob question
My company blocked the lock functionality - I have to enter my 8 characters paswoord each 15 minutes and blocked acces to lock parameters
I installed a simple reg editor and find I have to change registry HKLM\Security\Policies\Policies\00001023 to 1 to have acces to those parameters
Now I would like to write a cab to lock or unlock acces to the lock parameters
I tryed this but it doesn't work
What is wrong ??
THX
<Unlock_lock>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies">
<parm name="00001023" value="1" datatype="integer" />
</characteristic>
</characteristic>
</Unlock_lock>
----------------------------------------------------------
<Lock_lock>
<characteristic type="Registry">
<characteristic type="HKLM\Security\Policies\Policies">
<parm name="00001023" value="0" datatype="integer" />
</characteristic>
</characteristic>
</Lock_lock>
why install a cab every time u have to change parameters, when you can just make a reg file, which is much simpler.
ekw said:
why install a cab every time u have to change parameters, when you can just make a reg file, which is much simpler.
Click to expand...
Click to collapse
How can I create reg file ??
look at here, there are some examples http://forum.xda-developers.com/showthread.php?t=322262&page=10

HTC Network Wizard and provision.zip

Basically what I am trying to do is provision the connections on my phone without having to first install HTC Network Wizard, Reboot, then run it and configure the connection and then reboot again.
I know that inside of HTC Network Wizard is the provision.zip file which I have unzipped and located the AT&T XMLs. They are formatted with what look like non-standard CSPs:
<characteristic type="CM_GPRSEntries">
<characteristic type="Cingular GPRS">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}"/>
<parm name="UserName" value="[email protected]"/>
<parm name="Password" value="CINGULAR1"/>
<parm name="AlwaysOn" value="0"/>
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoValid" value="1"/>
<parm name="GPRSInfoAccessPointName" value="wap.cingular"/>
</characteristic>
</characteristic>
</characteristic>
Click to expand...
Click to collapse
If I try to import them like a normal provisioning XML I will get an error. My guess is because the CSPs are non-standard, like "CM_GPRSEntries" and that only HTC Network Wizard knows how to import them. I may be off base here...but that's my guess.
How can I import these to provision my network connections, or is there another way, or a particular set of reg keys I can just import to get everything setup?
thx.
comparing that provxml to the one in the at&t rom dump, they are similar.
Code:
<!-- MODEM[GPRS]: MEdia Net -->
<characteristic type="CM_GPRSEntries">
<characteristic type="MEdia Net">
<parm name="DestId" value="{97626DCF-818F-4be1-AC7E-77DA1B01F145}"/>
<parm name="Enabled" value="1"/>
<parm name="UserName" value="[email protected]"/>
<parm name="Password" value="CINGULAR1"/>
<characteristic type="DevSpecificCellular">
<parm name="GPRSInfoAccessPointName" value="wap.cingular"/>
</characteristic>
</characteristic>
</characteristic>
instead of importing the provxml, why not use the att settings cab, i think u can probably find the cab for it in alltheway's 4shared folder
Thanks Xtreme...you're right the files look very much the same. I downloaded the .CAB, extracted the .XML and it imported just fine.
I then took a deeper look between the two and it seems that my original one was formatted different ASCII. You can't see the difference if you open the XML in a browser, but you can if you open them in notepad.
I converted my original to proper ASCII and it now imported!
I guess the HTC program can deal with different types of ASCII formatting, but the 3rd party XML imported cannot.
thx again.
BTW...I'm writing a generic script, which is why I don't want to just use the .CAB, and need to figure out how to import XML.

Way to Backup Connection and Email settings??

Hello,
Does anyone know a way not only to backup PIM, but also Email settings and COnnection/VPN settings/Exchangeserver settings?
It is quite annoying jotting them down everytime I try a new rom.
No tools for this? Must be some reg keys only aren't they?
Why not back the registry up using sprite or a reg tool?
New Roms have other Registry settings I guess?
Riel said:
New Roms have other Registry settings I guess?
Click to expand...
Click to collapse
This is what I would like to know too
I doubt it's in the registry: I searched for my account name and it wasn't found. Try looking into the "Documents and Settings" folder; that seems promising to me!
Ok, since you dont want to do the work, try exporting these hives:
wifi conn - HKCU\comm\EAPOL\Config
Sounds/notifications - HKCU\control panel\notifications
Exchange activesync settings - HKLM\system\activesync
To start off with.
Most of those keys should be fairly standard, roms should only change HTC and other software/hardware specific entries for tweaks.
This would really help! I have no idea where to look for those settings... Also I would like to save the settings about my favourites (people shoving up in manila) so that I dont have to add them every time I reflash. Thanks
Riel said:
Hello,
Does anyone know a way not only to backup PIM, but also Email settings and Connection/VPN settings/Exchangeserver settings?
It is quite annoying jotting them down everytime I try a new rom.
No tools for this? Must be some reg keys only aren't they?
Click to expand...
Click to collapse
Not in the Registry - It's WAP Provisioning.
For the Email definitely (and perhaps some of the other settings you want) you can use RapiConfig to export your email settings to Provisioning XML. See the UC thread - post #17 for details.
Use this option when exporting.
Code:
<wap-provisioningdoc>
<characteristic-query type="EMAIL2" recursive="true"/>
</wap-provisioningdoc>
Also it is not obvious until you think about it - but when you run the RapiConfig utility on your PC - you must have your phone connected via USB to said PC at this time so it can extract the info from it.
Oh and you could of course just write the ProvXML your self without extracting/creating it with RapiConfig.
You can then either just import the ProvXML with Regedit v3 or convert the ProvXML to a CAB so it will import standalone.
I have done the latter. So I can reinstall all four of my email accounts with a single click on a cab. The process is a little convoluted to create. But you only have to do it once and then you can just keep using it. I originally created mine on my Kaiser 6 months ago and it works perfectly on the Diamond.
Also same UC thread post #3 scroll to the EMAIL2 CSPs bit to see the syntax. which is like this..
Code:
<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
<parm name="SERVICENAME" value="Gmail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="[email protected]" />
<parm name="AUTHSECRET" value="password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="[email protected]" />
<parm name="SMTPALTPASSWORD" value="password" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
<characteristic type="EMAIL2">
<characteristic type="{877e6100-cd6d-4a44-bd4c-3edf4b901480}">
<parm name="SERVICENAME" value="Gmail1" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="[email protected]" />
<parm name="AUTHSECRET" value="password1" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="[email protected]" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="[email protected]" />
<parm name="SMTPALTPASSWORD" value="password1" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Developers
So will anyone look into this and create a tool which creates the ability to restore email settings after a ROM update? Highly appreciated.
use a back-up utility like spb backup. restore PIM and e-mail only! the registry and system of the new ROM is not the same with yr old one!!
i get not only my PIM and e-mail accounts but also my favorite ppl (pics), last calls and SMS and all my settings (password not included) for WIFI and Internet connection. all in under 1 min!
logger: Great guide, I managed to make an regout.xml, but I dont know how to make a cab out of it. Any help is appreciated!
logger said:
Not in the Registry - It's WAP Provisioning.
For the Email definitely (and perhaps some of the other settings you want) you can use RapiConfig to export your email settings to Provisioning XML. See the UC thread - post #17 for details.
Use this option when exporting.
Click to expand...
Click to collapse
thanks for this! what is this string of numbers:
Code:
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
like where do i get that from?
laser21 said:
logger: Great guide, I managed to make an regout.xml, but I dont know how to make a cab out of it. Any help is appreciated!
Click to expand...
Click to collapse
Use makecab. For info look more here. Makecab should already be on your WIN system
Syntax is
Code:
makecab _setup.xml Provisioning.cab
Make sure you either append "_setup.xml" to the end of, or rename your input XML to just _setup.xml as makecab needs that in the input filename. Output name can be whatever you want.
racerx_ said:
thanks for this! what is this string of numbers:
Code:
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
like where do i get that from?
Click to expand...
Click to collapse
It is the GUID that makes the email account unique (at least thats the way I understand it but my knowledge here is very limited). Go back and look at UC Thread Post #3 and in the EMAIL2 CSPs section read the second line which explains that you simply go to http://www.guidgen.com/ to create a new one that you can use.
thanks thanks thanks!
so i need a different one every time i restore this account, or just generating one that i use every time should be ok..
Thanks. I knew about the regular windows makecab...but wasnt sure if its the same for ppc
racerx_ said:
thanks thanks thanks!
so i need a different one every time i restore this account, or just generating one that i use every time should be ok..
Click to expand...
Click to collapse
Just create the GUID once for each account. I have probably used my "AllFourEmailAccs.cab" more than 50 times now, unchanged from day one and it works perfectly.
KukurikU said:
use a back-up utility like spb backup. restore PIM and e-mail only! the registry and system of the new ROM is not the same with yr old one!!
i get not only my PIM and e-mail accounts but also my favorite ppl (pics), last calls and SMS and all my settings (password not included) for WIFI and Internet connection. all in under 1 min!
Click to expand...
Click to collapse
Hello mate- by favourite ppl- do you mean it actually backs up the list of favourite people you've setup in TF3D??? I've been looking for something to back up my TF3D people list since ROM flashing became possible (which is now why way behind as we know )
Hi, I just tried my new cab, it does import the email settings, but doesnt import the password. Also it doesnt import the wifi password. Any suggestions?
PS it wrote after installing the cab, that the installation was unsuccessful.
Thanks for any tips
I also need a way to backup connections (wap & mms)...

Cooking a Root CA Certificate (and a provxml question)

I've been trying to mix in the Root CA certificate for my Exchange server for the last couple of days, but so far I haven't had any luck. It always complains that the certificate for the server isn't valid until I manually run the .cer file.
I've search around google quite a bit, but so far I've only come up with one answer that even looked promising. It involved adding the bit below to a provxml file.
Code:
<wap-provisioningdoc>
<characteristic type="CertificateStore">
<characteristic type="ROOT">
<characteristic type="54567ea2c0c362b1105c9d3efa57cccc8ed46576">
<parm name="EncodedCertificate" value="<!-- CERTIFICATE DATA HERE -->" />
<parm name="Role" value="16" />
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I added it, with the certificate data actually in it, to mxipupdate_oemoperators_104.provxml, along with the other certificates that were already there.
Can someone tell me what the right answer is?
Also, I've been trying to make sense of the provxml system. From what I've read, it sounded like mxipcold_<PACKAGE_NAME>_*.provxml and mxipupdate_<PACKAGE_NAME>_*.provxml are run automatically. Is this correct? What about the other *.provxml files that don't follow that naming convention?
For reference, I'm using the Ervius Visual Kitchen (1.8.2).
Here is what mine looks like:
Code:
<?xml version="1.0" encoding="us-ascii"?>
<wap-provisioningdoc>
<characteristic type="CertificateStore">
<characteristic type="ROOT">
<characteristic type="User">
<characteristic type="309A7959AD799659277EDAB84284152E537F419A">
<parm name="EncodedCertificate" value="Certificate Data Here" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
I run it as part of user customization using a name like cert.xml
Seems like you should be able to put it in one of the provxml files as well but I have not tried it since it works fine for me right now.
An explanation of the Certificate XML
I think I've finally figured out what I was doing wrong. I found an explanation of the CertificateStore syntax from TechNet that shows the mistake. (It also shows how to make a cab that installs certificates.)
Code:
<wap-provisioningdoc>
<characteristic type="CertificateStore">
<characteristic type="ROOT">
<characteristic type="<certhash>">
<parm name="EncodedCertificate" value="<base64encodedcert>"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
Apparently the type is supposed to be the thumbprint of the certificate. So, no matter where I put it, it was rejecting my certificate as invalid since both parts weren't from the same certificate.
You could also just use SSLChainsaver...
You could also just use SSLChainsaver (link at bottom)... That would be the smart way to do things. And that way you can use it as cab instead of bulk XML, and tag it to your SDConfig.txt. As a matter of fact... use SSLChainsaver and this .bat script and you should be fine. I assume you're using EXCH2007 like me, if not it should still work on 2003 just fine- no data on 2010 yet. P.S. I got the script from somewhere on here but it took literally hours of searching for it to find it the first time... Good luck!
_____________________________________
@echo off
set mailserver=mail.mycompany.com
set /P mailserver=Please enter your mailserver (%mailserver%) + [ENTER]:
SSLChainSaver.exe %mailserver%
copy %mailserver%.wm6.xml _setup.xml
makecab /d compress=off _setup.xml %mailserver%.cab
echo Done! Copy %mailserver%.cab to your provisioning folder and add it to your UC (SDConfig.txt) or SASHIMI script
pause
_____________________________________
http://www.microsoft.com/downloads/...55-6590-4643-8e7f-11c177104de2&DisplayLang=en
Vertigo1md1032 said:
You could also just use SSLChainsaver (link at bottom)... That would be the smart way to do things. And that way you can use it as cab instead of bulk XML, and tag it to your SDConfig.txt. As a matter of fact... use SSLChainsaver and this .bat script and you should be fine. I assume you're using EXCH2007 like me, if not it should still work on 2003 just fine- no data on 2010 yet. P.S. I got the script from somewhere on here but it took literally hours of searching for it to find it the first time... Good luck!
Click to expand...
Click to collapse
I added support for UC (and SDConfig.txt) to the ROM I'm cooking, but haven't built a new build of it to try it out yet. I've already gotten the change made in the xml file referenced in my new SDConfig.txt, but if that doesn't work, I'll give this a shot.

Categories

Resources