Powershell : creating your PEM on DevOps pipeline



Sometimes you might want to create expose your public key / generate your public key to 3rd party apps. This is a code written entirely on Powershell to help you export public key (modulus and exponent) to a legit PEM file:

To use it,


$pemPublicKey = GeneratePublicKey $your_modulus_base64encoded 
$your_exponent

Write-Host($pemPublicKey)






Comments

Tokuro said…
nice one. thx. :-)

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type