# Automation Studio 6: Encrypted ANSL Communication with TLS → ANSLS – Problems with Dynamic IP Change and Trusted Certificates

**URL:** <https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177>\
**Category:** B&R Software & Runtime\
**Tags:** automation-runtime, automation-studio-6\
**Created:** [May 7, 2026, 9:06am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177 "2026-05-07T09:06:33Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 7, 2026, 9:06am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/1 "2026-05-07T09:06:34Z")

</div>

**Hallo zusammen,**

wir nutzen in **Automation Studio 4** verschlüsselte ANSL-Kommunikation und konnten die IP-Adresse der Steuerung zur Laufzeit über **`CfgSetIPAddr()`** setzen. Danach war ein Verbindungsaufbau über ANSL mit der neuen IP-Adresse problemlos möglich.

**In Automation Studio 6** scheint sich das Verhalten geändert zu haben:  
Die IP-Adresse der SPS **muss** im Server-Zertifikat hinterlegt sein.  
Wenn ich die IP-Adresse nun zur Laufzeit ändere (z. B. über `CfgSetIPAddr()`), stimmt die IP-Adresse nicht mehr mit dem Zertifikat überein.  
Versuche ich anschließend, eine Online-Verbindung aufzubauen, erhalte ich den Fehler:

> **11017 – Fehler bei der Server-Zertifikat-Validierung: IP-Adresse oder Hostname im Server-Zertifikat nicht gefunden**  
> [Link zur BR-Hilfe](https://help.br-automation.com/#/de/6/automationnet/pvierror/pvierror/pvierrornumbers.htm%2311000)

Die Verbindung lässt sich danach nicht mehr herstellen.

**Frage:**  
Hat jemand eine Lösung für dieses Problem?  
Gibt es in AS6 eine Möglichkeit, die IP-Adresse im Zertifikat dynamisch anzupassen oder die Validierung zu umgehen (z. B. über eine Konfiguration)?  
Oder muss das Zertifikat manuell neu erstellt werden, sobald sich die IP ändert?

* * *

**Zusätzliches Problem: Trusted Certificates**  
Sobald ich in der **SSL/TLS-Konfiguration** (siehe Screenshot) ein **Trusted Certificate** hinterlege, kann ich mich nicht mehr mit der Steuerung verbinden – selbst wenn ich das gleiche Zertifikat in den **Secure Configuration-Einstellungen der Online Settings** verwende.

 ![Screenshot TLS Configuration](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/71e3aee75d16552a9b3d7cfd5a1cd14214846a5e.png)  
 ![Screenshot Online Settings](https://europe1.discourse-cdn.com/brcommunity/original/2X/9/9f8dc2cb31d6e238966f4c5f3e5b5d82b657e8b1.png)

Als Fehlermeldung erhalte ich:

> **11022 – ANSL-Kommunikationsverbindung abgebrochen**

**Fragen:**

- Hat jemand Erfahrung mit Trusted Certificates in AS6?
- Muss das Zertifikat bestimmte Anforderungen erfüllen (z. B. spezielle Felder oder Signatur)?
- Gibt es eine Schritt-für-Schritt-Anleitung zur Konfiguration von TLS/ANSL in AS6?

* * *

**Umgebung:**

- Automation Studio 6
- Verschlüsselte ANSL-Kommunikation (TLS 1.2 aktiviert)
- Eigene Zertifikate
- Secure Configuration in Online Settings konfiguriert (IP-Adresse, Port, Benutzername, Passwort)

* * *

Ich freue mich über jede Hilfe oder Erfahrung, die ihr teilen könnt!  
Vielen Dank im Voraus!

**Beste Grüße**  
Simon

---

<div class="post-metadata">

**Author:** ![valerio.manenti](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/valerio.manenti/32/11712_2.png) [@valerio.manenti](https://community.br-automation.com/u/valerio.manenti)\
**Post date:** [May 7, 2026, 12:15pm UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/2 "2026-05-07T12:15:51Z")

</div>

It’s a mystery for me @Simon_Stoll why you wrote in German your post in German and not in English…you know English very well.  
Ciao  
Valerio

---

<div class="post-metadata">

**Author:** ![alexander.hefner](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/alexander.hefner/32/111_2.png) [@alexander.hefner](https://community.br-automation.com/u/alexander.hefner)\
**Post date:** [May 7, 2026, 1:07pm UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/3 "2026-05-07T13:07:35Z")

</div>

Hi @Simon_Stoll,

even if I have no idea right now (I’m out of office), I’m pretty sure that the changed IP address behavior has a Cyber Security / CRA background.  
Because the validation of the IP address and / or the hostname is one part in the security chain to validate that the communication partner is the right one. So I could imagine that ANSL / PVI uses more strict validation algorithms within the ASW 6 versions.

Do you use also a hostname in the PLC, and the hostname is also part of the certificate?  
Because from my basic knowledge, if IP addresses are changing, using a hostname instead is the way how it works (in IT environment, e.g. WWW).  
I also remember about the usage of wildcards in hostnames (for example to have on certificate for several sub-domains), but I’m not sure right now if and how this works in the AS/AR environment.

I hope someone else here in the Community has some more insight / background info.

BG Alex

---

<div class="post-metadata">

**Author:** ![wagner2a](https://avatars.discourse-cdn.com/v4/letter/w/FF8800/32.png) [@wagner2a](https://community.br-automation.com/u/wagner2a)\
**Post date:** [May 7, 2026, 2:29pm UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/4 "2026-05-07T14:29:39Z")

</div>

Hi @Simon_Stoll,

thank you for sharing this very important questions!

1. Unfortunately there is no way to change certificateparameters after creation- as you can imagin, thats because of cyber security reasons.
  1. So it is neccessary to create a new certificate.
  2. If the new connectionparameters are known before creation, you can enter all possible IP Adresses and Hostnames into SAN Parameter (Subject Alternative Name)
  3. As @alexander.hefner mentoined the usage of a hostname could help here

2. Regarding your Issue with “Trusted certificates”
  1. In Documentation (see [TLS/SSL configurations](https://help.br-automation.com/#/en/6/access_and_security/ssl/ssl_configuration.html)) you can find the Information, that Trusted CAs (“Certificate Authority”) can be specified as “Trusted Certificate”.
  2. This means, you need a chain of trust here to make this work
  3. We did a Test and could make it run:
    1. ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/b/bb9783b2608bcd52f5b5e692fcd6623b8b6d1ec3.jpeg)

  4. For testpurpose we started to create a guide for internal usage, how to create a simple chain of trust with “X - Certificate and Key management” (see [X - Certificate and Key management](https://www.hohnstaedt.de/xca/)). To share it here, we have to hide some sensitive information. As soon as we are so far, we will share it here.

BR Andy

---

<div class="post-metadata">

**Author:** ![wagner2a](https://avatars.discourse-cdn.com/v4/letter/w/FF8800/32.png) [@wagner2a](https://community.br-automation.com/u/wagner2a)\
**Post date:** [May 7, 2026, 2:55pm UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/5 "2026-05-07T14:55:33Z")

</div>

Hi @Simon_Stoll,

some additional Information regarding ANSL:

- Certificates must be created in PEM format (not DER)
- Client certificate must be stored as .pfx in the Windows certificate store
- As I mentoined, you need a chain of trust. As you can see in my screenshot of my last post, you have to insert the whole certificate chain including the intermediate certifcate must be add in the SSL configuration in AS

Unfortunately this Information is currently not available in AS Help. So we asked B&R to insert this important Information.

BR Andy

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 8, 2026, 6:06am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/6 "2026-05-08T06:06:37Z")

</div>

@alexander.hefner: yes, we discussed the usage - however, we are currently not deploying any DNS servers on our machines.  
@wagner2a: thanks for your very helpful information and ideas.

> [@wagner2a](#):
>
> Regarding your Issue with “Trusted certificates”

→ Great. I will test it 🙂

I’m curious to see if anyone else has had any experiences with ANSLS in AS6!

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 8, 2026, 6:08am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/7 "2026-05-08T06:08:12Z")

</div>

Hi Valerio,  
the BR Automation Community forum has a built-in **translation feature** 🙂  
 ![grafik](https://europe1.discourse-cdn.com/brcommunity/original/2X/1/178a26de55a8629c89f4e6b1663437169291721a.png)

I wrote in German because the topic is quite specific, and I wanted to reach the German-speaking user base first.

But you’re right – I’ll switch to English for broader visibility if needed. Thanks for the hint!

Best regards  
Simon

---

<div class="post-metadata">

**Author:** ![wagner2a](https://avatars.discourse-cdn.com/v4/letter/w/FF8800/32.png) [@wagner2a](https://community.br-automation.com/u/wagner2a)\
**Post date:** [May 8, 2026, 9:37am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/8 "2026-05-08T09:37:00Z")

</div>

Hi @Simon_Stoll,

reagarding your first Question (Certificate Handling when Enduser can change the IP-Address) there is already an Thread from 2024, which goes in same direction: [MappView Client: SSL certificate for https connection](https://community.br-automation.com/t/mappview-client-ssl-certificate-for-https-connection/2092)

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [May 11, 2026, 6:57pm UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/9 "2026-05-11T18:57:43Z")

</div>

Hi @Simon_Stoll what is status of your question there? have you figured out answer?

---

<div class="post-metadata">

**Author:** ![Simon\_Stoll](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/simon_stoll/32/445_2.png) [@Simon\_Stoll](https://community.br-automation.com/u/Simon_Stoll)\
**Post date:** [May 26, 2026, 6:40am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/10 "2026-05-26T06:40:22Z")

</div>

Hi Jaroslav,

not really - maybe it’s an idea to use ArSSL lib to change certificate at runtime.

Unfortunately, I haven’t had the opportunity to test this yet.

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [May 26, 2026, 7:39am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/11 "2026-05-26T07:39:32Z")

</div>

Ok @Simon_Stoll , I marked your answer as a “solution”, if you investigate real solution please update us here. Thanks

---

<div class="post-metadata">

**Author:** ![Thomas.Haindl](https://avatars.discourse-cdn.com/v4/letter/t/FF8800/32.png) [@Thomas.Haindl](https://community.br-automation.com/u/Thomas.Haindl)\
**Post date:** [June 11, 2026, 8:36am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/12 "2026-06-11T08:36:44Z")

</div>

Hi, since we’ll face the same issue, i did some tests generating certificates at runtime. Two FBs from ArCert will do the basics. First delete the default certificate with ArCertDeleteOwn and after that create a new one with ArCertGenerateX (Important: name of certificate and key have to be the same as the default certificate and must be specified with the file extension (e.g. CertName.cer & KeyName.key), otherwise the TLS-configuration will not be able to refer to the new certificate).  
Optional you can export the new certificate with FBs from ArCert (ArCertExportOwn) and FileIO (FileCreate → FileOpen → FileWrite (point to exported data from ArCertExportOwn) → FileClose). I exported the new certificate to the CF and copied it to my device via FTP.  
After all that being done, you can change the IP-address of the plc and/or do a warmstart (default settings will be vaild until you do a warmstart) and finally install & configure the new certificate in AS, PVI or whereever.

BR  
Thomas

---

<div class="post-metadata">

**Author:** ![kovarj](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/kovarj/32/537_2.png) [@kovarj](https://community.br-automation.com/u/kovarj)\
**Post date:** [June 12, 2026, 7:52am UTC](https://community.br-automation.com/t/automation-studio-6-encrypted-ansl-communication-with-tls-ansls-problems-with-dynamic-ip-change-and-trusted-certificates/11177/13 "2026-06-12T07:52:19Z")

</div>

Thanks for sharing @Thomas.Haindl . Based on your answer I created wiki post, so it is easier to find. But credit goes to you 🙂

> [@Dynamic Runtime Certificate Generation and Replacement Using ArCert](https://community.br-automation.com/t/dynamic-runtime-certificate-generation-and-replacement-using-arcert/11550):
>
> Introduction This article describes how to generate a certificate at runtime and replace the default certificate using ArCert function blocks. Runtime Certificate Generation Delete Default Certificate First, delete the default certificate using: ArCertDeleteOwn Generate New Certificate After deleting the default certificate, generate a new one using: ArCertGenerateX Important: The certificate name and key name must be the same as the default certificate The names must include the file e…
