Forum Discussion
Kirk_51216
Nimbostratus
Jan 18, 2012Powershell list certificates
Hi,
I am trying to list all the details for certificates used in SSL profiles using Powershell.
This is the code I am using: Initialize-F5.iControl -hostname $g_bgip -use...
dennypayne
Employee
Jun 21, 2006Try using the CLIENT_ACCEPTED event that I used earlier to limit the addition of a record to the first connection.
Also because you aren't setting $uid in the HTTP_RESPONSE event, I don't think anything's getting added, and you're seeing the log from the HTTP_REQUEST event.
I don't think order matters, but it might make it easier to see the logic if you move the response event before the request event, since it's on the first response that you want to set the persist record.
when CLIENT_ACCEPTED {
set add_persist 1
when HTTP_RESPONSE {
set uid [findstr [HTTP::uri] "uid=" 5 "&"]
if { $uid != "" and $add_persist} {
log local0. "Adding persist value to table: $uid"
persist add uie $uid
set add_persist 0
}
when HTTP_REQUEST {
set fulluri [HTTP::uri]
set uid [findstr [HTTP::uri] "uid=" 5 "&"]
if { $uid != "" } {
log local0. "Using persist value uid: $uid | $fulluri"
persist uie $uid
} else {
log local0. "No uid found in HTTP REQUEST | $fulluri"
}
}
This still may not help with the fact that you said you have different clients using the same uid however.
Denny
- Jad_Tabbara__J1Oct 17, 2017
Cirrostratus
MSZ,
When building the ASM policy with Attack Signature protection, it is better to determine the following information about the application you intend to protect.
- OS
- Web Server
- Languages, Frameworks & Application
- DB Servers
After determining theses information, from the "Attack Signature" screen select the corresponding ones. For example:
- OS: Windows
- Web Server: IIS
- Languages, Frameworks & Application: ASP.NET
- DB Servers: MySQL
In this way you will select only Attack Signatures that applies to your application. Doing so will limit the false positive.
Hope it helps
Regards
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects