# Irule creation

**URL:** <https://community.f5.com/t/irule-creation/59758>\
**Category:** Technical Forums\
**Tags:** irules, devops\
**Created:** [May 19, 2018, 7:55am UTC](https://community.f5.com/t/irule-creation/59758 "2018-05-19T07:55:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dinesh3888](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@Dinesh3888](https://community.f5.com/u/Dinesh3888)\
**Post date:** [May 19, 2018, 7:55am UTC](https://community.f5.com/t/irule-creation/59758/1 "2018-05-19T07:55:02Z")

</div>

Hi,

Need a help on irule i have a site when user hits this they have to be redirected to [https://aaa.yyy.com](https://aaa.yyy.com) where as [yyy.com](http://yyy.com) is our domain name.I have cert with FQDN [aaa.yyy.com](http://aaa.yyy.com). So whenever user hits they are getting SSL error. Note:I cannot add aaa as SAN name to cert because this is external cert and we access this url both internal and external.

---

<div class="post-metadata">

**Author:** ![stan\_piron](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Post date:** [May 19, 2018, 8:41am UTC](https://community.f5.com/t/irule-creation/59758/2 "2018-05-19T08:41:00Z")

</div>

Hi,

when the browser first requests , the browser :

- open TCP connection
- Initiate the TLS handshake with server name “aaa”
- receive the browser with [aaa.yyy.com](http://aaa.yyy.com) certificate
- display SSL error, the user accept the SSL error
- send request for
- receive the redirect to [https://aaa.yyy.com](https://aaa.yyy.com)

you can create a certificate for aaa sign by your internal CA (imported in browsers trusted CA) and enable SNI

---

<div class="post-metadata">

**Author:** ![Dinesh3888](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@Dinesh3888](https://community.f5.com/u/Dinesh3888)\
**Post date:** [May 19, 2018, 9:25am UTC](https://community.f5.com/t/irule-creation/59758/3 "2018-05-19T09:25:14Z")

</div>

Thanks Piron. Do we need to import the private cert in all users browser?

---

<div class="post-metadata">

**Author:** ![stan\_piron](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Post date:** [May 19, 2018, 9:31am UTC](https://community.f5.com/t/irule-creation/59758/4 "2018-05-19T09:31:45Z")

</div>

do you already have a certificate authority in your company?

---

<div class="post-metadata">

**Author:** ![Dinesh3888](https://avatars.discourse-cdn.com/v4/letter/d/d26b3c/32.png) [@Dinesh3888](https://community.f5.com/u/Dinesh3888)\
**Post date:** [May 19, 2018, 3:04pm UTC](https://community.f5.com/t/irule-creation/59758/5 "2018-05-19T15:04:38Z")

</div>

Yes we have

---

<div class="post-metadata">

**Author:** ![stan\_piron](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@stan\_piron](https://community.f5.com/u/stan_piron)\
**Post date:** [May 21, 2018, 8:43am UTC](https://community.f5.com/t/irule-creation/59758/6 "2018-05-21T08:43:31Z")

</div>

So I guess this certificate authority is already added as trusted CA on all AD computers.

If it is, there is no more action to be done on computers.
