Click here to Skip to main content
15,894,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
i am able to send push notification from my local-host but i am not able to send push notification from my demo server to iphone device.
my demo server is windows server 2008.
here is my code:
C#
 using (TcpClient client = new TcpClient())
            {
              
string appleurl="gateway.push.apple.com";
string pushpath = @"D:\App_Data\AppPush.p12";
  client.Connect(appleurl, 2195);
 X509Certificate clientCertificate = new X509Certificate(pushpath);
                    X509CertificateCollection clientCertificateCollection = new X509CertificateCollection(new X509Certificate[1] { clientCertificate });

                    SslStream sslStream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);

                    try
                    {
                        sslStream.AuthenticateAsClient(appleurl, clientCertificateCollection, SslProtocols.Default, false);
                    }
}


and is there any setting is required to register our certificate in IIS or MMC.
please let me know.
Posted
Updated 21-Dec-12 0:11am
v2
Comments
giri001 24-Dec-12 5:21am    
@ProgramFOX can u look into this problem..:-(

Hi @All now problem is solved by googling it.

only need to add "IIS_IUSRS" with Apple Production IOS certificate.now it is also working on Demo/Development Server.
Thanks :-)
JMD
 
Share this answer
 
Please specify what do you mean by add "IIS_IUSRS" with Apple Production IOS certificate" ?
 
Share this answer
 
Comments
giri001 1-Apr-14 3:20am    
Hi Ahmed,Please go through this post
http://stackoverflow.com/questions/14934006/iis-iusrs-and-iusr-permissions-in-iis8

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900