Jump to content

Autom. RemoteConnector-Zertifikate erstellen


jodost
 Share


Go to solution Solved by jodost,

Recommended Posts

  • Most Valued User
  • Solution

Vielleicht hilft es ja jemanden:

 

Wir haben inzwischen auf unseren Swyx-Installationen ein kleines Script, das als scheduled task 1x am Tag bei allen neu hinzugekommenen Nutzern ein RemoteConnector-Zertifikat anlegt. Einerseits ist das lästig, dass das nicht direkt beim Anlegen des Users abgefragt wird - Kunden vergessen das das schon mal gerne, wenn sie selbst User anlegen. Andererseits haben wir Installationen, wo die Kunden das Zertifikats-Passwort gar nicht kennen (sollen), aber trotzdem User anlegen. Beides ist jetzt kein Problem mehr, das Zertifikat kommt automatisch:

 

Import-Module IpPbx
Connect-IpPbx
$securestring = ConvertTo-SecureString -AsPlainText "XXXHierDasPasswortEintragenXXX" -Force
$user = get-ippbxUser
foreach ($u in $user)
{
if ($u.CertificateThumbprint.length -lt 3 ) {
Write-Host $u.name "bekommt ein neues Zertifikat:"
$cert = New-IpPbxClientCertificate -UserEntry $u -RootPassword $securestring -Confirm:$false
echo $cert.Thumbprint
} else {
Write-Host $u.name "in Ordnung"
}
}
Disconnect-IpPbx

 

Link to comment
Share on other sites


  • 1 year later...
  • 8 months later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.