Siccolo helps MS SQL Server professionals save time and increase their productivity by utilizing a more efficient approach to database management - use their Windows Mobile empowered device while sipping margarita on the beach. Siccolo extends support from mobile devices for Microsoft SQL Servers
Showing posts with label X509Store. Show all posts
Showing posts with label X509Store. Show all posts
Monday, March 3, 2008
Personal Security Certificate PFX article on www.lottext.com
posted article on Windows Mobile - How to Install Personal Security Certificate PFX
Friday, February 1, 2008
How to Install Personal Security Certificate in C# compact framework using PFXIsPFXBlob(), CertAddCertificateContextToStore() functions
Access web service with required personal security certificate - using x509 PFX personal certificate - Install Personal Security Certificate in C# compact framework. :



...
byte[] pfxData = GetFile(certificatePath);
...
CRYPT_DATA_BLOB pPFX = new CRYPT_DATA_BLOB();
pPFX.cbData = pfxData.Length;
pPFX.pbData = Marshal.AllocHGlobal(pfxData.Length);
Marshal.Copy(pfxData, 0, pPFX.pbData, pfxData.Length);
...
hMemStore = PFXImportCertStore(ref pPFX, password, CRYPT_USER_KEYSET);
...
cert_MY_store = CryptoAPI.CertOpenStore(new IntPtr(CERT_STORE_PROV_SYSTEM_W),
0,
IntPtr.Zero,
CERT_SYSTEM_STORE_CURRENT_USER,
"MY");
...
...
CertAddCertificateContextToStore(cert_MY_store,
hCertCntxt,
(int)CERT_STORE_ADD_REPLACE_EXISTING, IntPtr.Zero)
.NET Compact Framework Miscellaneous Development Tips...
- .NET Compact Framework Miscellaneous Development Tips:
- Access web service with required network credentials - System.Net.NetworkCredential
- How to Install Personal Security Certificate in C# compact framework - x509 PFX personal certificate - CertAddCertificateContextToStore() - PFXIsPFXBlob()
- How to Check if Personal Security Certificate Exists in C# compact framework - x509 PFX personal certificate - X509Store - X509Certificate2Collection
- How to Retrieve Windows Mobile Device ID in C# Compact Framework - GetDeviceUniqueID()
- How to Retrieve Windows Mobile SIM Phone Number in C# Compact Framework - SmsGetPhoneNumber()
- How to Retrieve Windows Mobile Application Directory in C# Compact Framework - Path.GetDirectoryName()
- How to Retrieve and Load XML Settings in Windows Mobile Application in C# Compact Framework
Subscribe to:
Posts (Atom)
Exception handling -> "bubble up
Exception handling -> "bubble up" Exception handling (#1) try { ... // might fail ... } ca...
-
see it at Siccolo Articles - How to Create SQL Function To Format To Currency
-
SQL Sever - How to Create a Directory (Folder) - Using xp_cmdshell and mkdir command
-
new artcle at Siccolo - How to open Dataset From Comma delimited (CSV) File - Reading CSV files - Parsing CSV Files