Tag Archives: convert

Powershell: Convert 18-digit LDAP/Win32 Epoch timestamp to DateTime object

Hi,

LDAP use a 18 digit timestamp format. It’s an epoch timestamp.
Continue reading Powershell: Convert 18-digit LDAP/Win32 Epoch timestamp to DateTime object

Powershell: Convert a string into a securestring and back to plaintext

Hi,

.Net and therefore the powershell has the ability to define a secure string. This means that the string is immediately deleted from memory if it is no longer needed.
Continue reading Powershell: Convert a string into a securestring and back to plaintext

Linux: Call a phone and play a message with asterisk

Hi,

asterisk is a complete VoIP/SIP solution but can also be used as a SIP client to send a prerecorded message. In this example I will use a Fritz!box as the upstream SIP Server for asterisk.
Continue reading Linux: Call a phone and play a message with asterisk

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

Powershell: Convert Hex to Int type

Hi,

short post today. Topic: convert a hex string to an integer type.
Continue reading Powershell: Convert Hex to Int type