Tag Archives: certificate

Powershell: Export/Convert a X509 Certificate to pem format

Hi,

powershell respectively the .NET framework does not offer a method to export a X509 certificate in PEM format. The pem format is a Base64 encoded view from the raw data with a header and a footer.

An example to export the machine certificate (with Thumbprint: 1C0381278083E3CB026E46A7FF09FC4B79543D) of an computer
Continue reading Powershell: Export/Convert a X509 Certificate to pem format

Windows: Renew a machine certificate

Hi,

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.
Continue reading Windows: Renew a machine certificate

Java: Create a jks keystore with a selfsigned certificate

Hi,

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.
Continue reading Java: Create a jks keystore with a selfsigned certificate

OpenSSL: Check if a certificate belongs to a private key

Hi,

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:
Continue reading OpenSSL: Check if a certificate belongs to a private key

OpenVPN: Read certificate passphrase from file

Hello,

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.
Continue reading OpenVPN: Read certificate passphrase from file