Hi out there!
I am trying to increase a web requests security protocol in order to access a web service which is requiring TLS 1.2.
My default SSL is not accepted.
The request is send from Dynamics NAV 2013 (7.00).
I have of course searched for a solution to this problem elsewhere. One single line should be enough:
ServicePointManager.SecurityProtocol := 3072;
This however does not grant me access to the server.
HttpWebRequest := WebRequest.Create(txtURLiLG);
ServicePointManager.SecurityProtocol := 3072; // 3072 = Tls12 (TLS 1.2)
HttpWebRequest.Timeout := 600000; // 10 minutes
HttpWebRequest.ReadWriteTimeout := 600000; // 10 minutes
HttpWebRequest.ContentType := 'text/xml;charset=utf-8';
HttpWebRequest.Method := 'POST';
SystemTextUTF8Encoding := SystemTextUTF8Encoding.UTF8Encoding();
Bytes := SystemTextUTF8Encoding.GetBytes(XMLDoc.InnerXml);
HttpWebRequest.ContentLength := Bytes.Length;
RequestStream := HttpWebRequest.GetRequestStream();
RequestStream.Write(Bytes, 0, Bytes.Length);
RequestStream.Close;
Do any of you have a hint setting securety protocol to TLS 1.2 in Dynamics NAV?
Thanks.
Best regards
Jan
I am trying to increase a web requests security protocol in order to access a web service which is requiring TLS 1.2.
My default SSL is not accepted.
The request is send from Dynamics NAV 2013 (7.00).
I have of course searched for a solution to this problem elsewhere. One single line should be enough:
ServicePointManager.SecurityProtocol := 3072;
This however does not grant me access to the server.
HttpWebRequest := WebRequest.Create(txtURLiLG);
ServicePointManager.SecurityProtocol := 3072; // 3072 = Tls12 (TLS 1.2)
HttpWebRequest.Timeout := 600000; // 10 minutes
HttpWebRequest.ReadWriteTimeout := 600000; // 10 minutes
HttpWebRequest.ContentType := 'text/xml;charset=utf-8';
HttpWebRequest.Method := 'POST';
SystemTextUTF8Encoding := SystemTextUTF8Encoding.UTF8Encoding();
Bytes := SystemTextUTF8Encoding.GetBytes(XMLDoc.InnerXml);
HttpWebRequest.ContentLength := Bytes.Length;
RequestStream := HttpWebRequest.GetRequestStream();
RequestStream.Write(Bytes, 0, Bytes.Length);
RequestStream.Close;
Do any of you have a hint setting securety protocol to TLS 1.2 in Dynamics NAV?
Thanks.
Best regards
Jan