Skip to content

Instantly share code, notes, and snippets.

View deemoowoor's full-sized avatar
😄
happy

Andrei Sosnin deemoowoor

😄
happy
View GitHub Profile
@deemoowoor
deemoowoor / jwtRS256.sh
Last active February 26, 2020 19:01 — forked from ygotthilf/jwtRS256.sh
How to generate a JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub
[void] [Reflection.Assembly]::LoadWithPartialName("System.Messaging")
[System.Messaging.MessageQueue]::GetPrivateQueuesByMachine("LOCALHOST") | % {".\" + $_.QueueName} | % {[System.Messaging.MessageQueue]::Delete($_); }
echo "All MSMQ queues deleted"