https - Don't know how to add SSL certificate on Windows Phone 8.1 Portable Class Library -


i tried in many ways access https server using windows.web.http.httpclient on portable class library windows phone 8.1 app

i need portable class library , install ssl certificate on library whithout action of user.

is possible , if yes, how ?

you can load certificate application file , install it:

uri uri = new uri("ms-appx:///assets/temprootca.cer"); storagefile file = await storagefile.getfilefromapplicationuriasync(uri); ibuffer buffer = await fileio.readbufferasync(file); certificate rootcert = new certificate(buffer); certificatestore rootstore = certificatestores.trustedrootcertificationauthorities; rootstore.add(rootcert); 

Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -