Windows: Renew a machine certificate


in most Active Directory Enviroments the Certificate Enrollment is active which generates and enrolls a certificate for each client. This can be used for Radius authentication or as certificate for an IIS webserver.

Typically the client renews this certificate itself.
More »

Advertisment to support

Java: Create a jks keystore with a selfsigned certificate


short “HowTo” today 🙂 This post contains the keytool command line parameters for creating a jks container which contains an key and the selfsigned certificate belongs to that key.
More »

OpenSSL: Check if a certificate belongs to a private key


if you want to check if a certificate has it s origin in a specific private key respectively the signing request use the following openssl commands:
More »

OpenVPN: Read certificate passphrase from file


when you establish a OpenVPN connection with a password protected ceritificate you have enter the passphrase each time when OpenVPN starts.

This isn’t nice if you want to connect at system startup without an user interaction.
More »

Script to get a list of computers connected to a Avocent KVM switch


in his office, a customer have a few Avocent KVM switches to control some client computers in a remote room. He ask me about the possibility to get a list of all computers connected to these boxes, because he do not want to maintain any list by hand.

I research the documention but there is no (scripting) interface from which I could get such a list. SSH is only for connecting serial consoles, SNMP offers no OIDs for such a case.

Because of the costs, DSView isn’t a option. The only way seems to be to extracting the list by reading the Webfrontend HTML output. Let us do this 🙂

I wrote a script in powershell, at least version 2 is needed to handle selfsigned SSL certificates, which do the following:

  • Login to the Webfronted with https and SSL encryption by System.Net.HTTPWebRequest class to get the authentification cookie
  • Get the Device HTML  page by .NET class System.Net.Webclient and using Authentification cookie
  • Save HTML do a temporary file
  • Open the file with Internet Explorer
  • Get the URL to start a KVM session, computername and portnumber by  DOM

Script details

Define the User, Password, protocol and the devices:

# KVM User
# KVM Password
# Protocol
# Your Devices

Built HTTP POST text and disable SSL certificate warnings
More »

Original Theme by Schiy · Powered by WordPress