title: How to use setWebhook in Telegram with self certificates on Windows 7 and PHP?
body: <p>I'm quite a newbye in Telegram and I'm trying moving my first steps with it. </p>
  
  <p>I've found a good tutorial here <a href="https://www.youtube.com/watch?v=hJBYojK7DO4" rel="nofollow">https://www.youtube.com/watch?v=hJBYojK7DO4</a>: I've configured my Apache 2.4 with PHP and SSL and all works fine, also the samples in the tutorial. </p>
  
  <p>Troubles are using the setWebhook method .... when I try to put in my browser </p>
  
  <pre><code>https://api.telegram.org/&lt;my_bot_code&gt;/setWebHook?url=https://localhost/Telegram/MyYouTubeTutorialBot/YouTubeTutorialBot.php
  </code></pre>
  
  <p>the response is </p>
  
  <pre><code>{"ok":false,"error_code":400,"description":"Error: Bad webhook: Error: Ip is reserved"}
  </code></pre>
  
  <p>Note that I'm using a self generated certificate .... </p>
  
  <p>I've found in the api Telegram documentation (ref. <a href="https://core.telegram.org/bots/faq#i-39m-having-problems-with-webhooks" rel="nofollow">https://core.telegram.org/bots/faq#i-39m-having-problems-with-webhooks</a>), that </p>
  
  <p>"<em>..... To use a self-signed certificate, you need to upload your public key certificate using the certificate parameter in setWebhook. Please upload as InputFile, sending a String will not work.</em>"</p>
  
  <p>I don't understand how to upload my public key certificate file .... any examples somewhere?</p>
  
  <p>The problem could be because I'm using <strong><em>localhost</em></strong> and the default IP address <strong><em>127.0.0.1</em></strong> for my local Apache? Should I change my IP address using the current one that change every time I connect to the web (I'm using a internet key to connect me to the web .....)? </p>
  
  <p>Thank you very much in advance</p>