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...
Kirk_51216
Nimbostratus
Jan 19, 2012Nevermind - 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, 2013
Nimbostratus
Hi Can you please give the full code you have used, that would help others too.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
