<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Current HTTPS status.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54304/current-https-status</link><description>Hi; 
 
 I am trying to send a Telegram message using Telegram Bot API . As the documentation shows: &amp;quot;All queries to the Telegram Bot API must be served over HTTPS&amp;quot;. I have tried using Rallares&amp;#39;s HTTP example, and I have successfully modified it to send</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 13 Nov 2019 17:35:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54304/current-https-status" /><item><title>RE: Current HTTPS status.</title><link>https://devzone.nordicsemi.com/thread/219939?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 17:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45e2f169-dc89-4547-9e17-e60b3f80c9dd</guid><dc:creator>isurki</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your https sample works perfectly, and now I can send Telegram messages.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think your sample should be included in Github, it is highly useful.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current HTTPS status.</title><link>https://devzone.nordicsemi.com/thread/219917?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 14:54:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48b5e441-4265-4640-a67f-7590fb6ec485</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I edited my http sample, and added https support, where it connects to google.com:443 and fetches the index.html:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-479d66fe74ec4df1a53066a12a20af26/https_5F00_simple_5F00_sample.zip"&gt;devzone.nordicsemi.com/.../https_5F00_simple_5F00_sample.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can use this as a starting-point (I&amp;#39;ll do a PR on it later). Let me know if there&amp;#39;s any issues.&lt;/p&gt;
&lt;p&gt;*edit* Its up for review now:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1488"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1488&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current HTTPS status.</title><link>https://devzone.nordicsemi.com/thread/219896?ContentTypeID=1</link><pubDate>Wed, 13 Nov 2019 13:17:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d8878c5-4ddb-4726-8c02-f1790713317a</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have a https sample available.&lt;/p&gt;
&lt;p&gt;To use HTTPS, you have to open the socket with IPPROTO_TLS_1_2, and set the socket options (TLS_PEER_VERIFY to &amp;#39;1&amp;#39; is the minimum requirement, rest of setsockopt can be skipped unless you need hostname verification and priv/pub key pair) according to what your needs are, similar to what is done here in the mqtt_transport_tls.c file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/subsys/net/lib/mqtt/mqtt_transport_socket_tls.c#L21"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/subsys/net/lib/mqtt/mqtt_transport_socket_tls.c#L21&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Or in the download_client.c file:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nordicplayground/fw-nrfconnect-nrf//blob/master/subsys/net/lib/download_client/src/download_client.c#L116"&gt;https://github.com/nordicplayground/fw-nrfconnect-nrf//blob/master/subsys/net/lib/download_client/src/download_client.c#L116&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that when you set peer_verify to &amp;#39;1&amp;#39; (optional), you can try to skip the sec_tag_list setup (this call&amp;nbsp;&lt;a href="https://github.com/nordicplayground/fw-nrfconnect-nrf//blob/master/subsys/net/lib/download_client/src/download_client.c#L82"&gt;https://github.com/nordicplayground/fw-nrfconnect-nrf//blob/master/subsys/net/lib/download_client/src/download_client.c#L82&lt;/a&gt;)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;PS: port should be 443 for HTTPS.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current HTTPS status.</title><link>https://devzone.nordicsemi.com/thread/219771?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 22:19:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bea5c29-1963-4466-af3e-0f8edd3eef1d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The SDK 16.0.0 includes nrf_tls. The mqtt examples seem to use TLS. Note: HTTPS is HTTP over TLS.&lt;/p&gt;
&lt;p&gt;Not sure if this is enough, modern HTTPS servers may require some advanced features like SNI (Server Name Indication). Certificate handling would be a real pain on the limited space in an NRF device.&lt;/p&gt;
&lt;p&gt;You really don&amp;#39;t want to terminate the SSL connection on the small device but on whatever is connected via blueooth (or USB/UART).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>