Forum Discussion

Richard_Amerman's avatar
Richard_Amerman
Icon for Nimbostratus rankNimbostratus
Sep 24, 2018

Command is not valid in current event context error on SSL::Profile in CLIENT_DATA event

Trying to create an iRule to assign SSL profiles dynamically.

When I try and use

SSL::Profile
in the
CLIENT_DATA
event I get this error:

command is not valid in current event context (CLIENT_DATA)][SSL::profile xxxxxxxxx

From everything I can see in reading online It looks like this is not only a valid event to use this command, but likely one of the main ones you would use it in.

Unfortunately, the help page for

SSL::Profile
does not have anything in its "Valid Events" section

  • It's an iRule validation thing. Try this:

    when CLIENT_DATA {
        set sslprof "SSL::profile foo"
        eval ${sslprof}
    }