All posts by Michael Albert

Linux: Disable IPv6

Hi,

to disable IPv6 on a Linux system you have to set some variables with sysctl.
Continue reading Linux: Disable IPv6

Advertisment to support michlstechblog.info

Linux: Use ssh agent forwarding while sudo to another user

Hi,

if you are logged on as a user1 and switch to another user2 with sudo the ssh agent from user1 cannot be used because the “switched” user2 does nothing know about the ssh-agent respectively the agent socket.
Continue reading Linux: Use ssh agent forwarding while sudo to another user

Windows: Start an Windows APP from command line


Hi,

this post describes how to start a Windows App from command line. Windows Apps cannot be started by calling the exe file in the C:\program files\WindowsApps\xxx folder. This can/must be done my using the explorer.exe.

The Syntax is


C:\> explorer.exe shell:appsFolder\%PackageFamilyNameOfTheApp%!%AppId%

Continue reading Windows: Start an Windows APP from command line

MQTT: Publish topics from command line

Hi,

the mosquitto MQTT broker also consists of some command line tools to publish or subscribe topics from a shell.

Continue reading MQTT: Publish topics from command line

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