Tag Archives: convert

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

Advertisment to support michlstechblog.info

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

Hexdump: Hexdump a binary file and convert it back

Hi,

for hexdump (binary) files and converting back the Linux command line xxd works perfect.

Continue reading Hexdump: Hexdump a binary file and convert it back

Hyper-V: Convert a VMware Virtual Machine files to Hyper-V

Hi,

this post describes how to convert VMware vmdk files to Hyper-V’s vhdx format.

Continue reading Hyper-V: Convert a VMware Virtual Machine files to Hyper-V

Windows: Convert formatted text in clipboard to plain text

Hi,

when you often have to copy some text between HTML/Browser pages, browser based content management systems, Office Documents and terminal emulators you know the problem: Text from browsers and office documents also contains format attributes like font size, fonts etc. which causes an unexpected layout or format.

For example, if you copy a text from LibreOffice to wordpress(Yes of course, you could paste the test  into wordpress by using the “paste plain text” toolbar buttons. But this is one step more and I prefer Ctrl V Ctrl C for copy and paste).
Continue reading Windows: Convert formatted text in clipboard to plain text