Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding certificate to a Web Service from a string
Message
From
23/08/2012 08:14:41
 
 
General information
Forum:
ASP.NET
Category:
Web Services
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01550969
Message ID:
01551146
Views:
64
>If your string looks like a longer version of this then it will be from a .PEM file:
-----BEGIN CERTIFICATE-----
>MIIDXDCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQQFADCBgTELMAkGA1UEBhMCR0Ix
>DzANBgNVBAgTBkRlcmJ5czEVMBMGA1UEBxMMQ2hlc3RlcmZpZWxkMRUwEwYDVQQK
>CSqGSIb3DQEBBAUAA4GBAAjRRpNbEhxjpewJDe5zKZ0tVoQvcLaqrWNYFHBmrcJp
>HuxB7sah8FIGP5Qyko8TS0cpwrCsh3e47Rw2R+SzThnm8mP1KHKo2G6XAaOelvth
>DMdl9gHXU+qzR2BIQV2e+Zsl7lmjCx8qDSVP34qbQFKAtImoTn3H/mqTt35pwJc/
>-----END CERTIFICATE-----
in which case my suggestion will work (although you will need to strip the BEGIN CERTIFICATE / END CERTIFICATE lines if they are present before using ConvertFromBase64()

The string does not contain the start and end markers. Its total bytes is 2452. This divides at 38.31 So, it is not a based 64. Also, there is no alignment. If their is no wrap, the string is all in one line. If there is a wrap, it wraps at the + sign. This is a custom certificate. The receiver processes the authentication of this certificate manually. They haven't told us how to send it. However, it is not at the method level as the method only accept one parameter, which is a XML. So, the only way to send the certificate is based on what I thought. However, if this is not a real certificate or not a base 64 certificate, I wonder if that will work.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform