Forum Discussion
Kirk_51216
Jan 18, 2012Nimbostratus
Powershell 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...
Kirk_51216
Jan 19, 2012Nimbostratus
Nevermind - I figured out it was an indexed array.
for($i=0; $i -lt $certs.count; $i++) {
$certdate = $certs[$i].certificate.expiration_string;
$certcn = $certs[$i].certificate.subject.common_name;
write-host "Common Name is $certcn"
write-host "Expiration date is $certdate"
}
- TESTING_32412Aug 21, 2013NimbostratusHi Can you please give the full code you have used, that would help others too.
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