Skip to content

rabbitmqctl.bat encode doesn't works under Windows #13424

Answered by lukebakken
moerwald asked this question in Questions
Discussion options

You must be logged in to vote

@moerwald - this is the correct way to escape the arguments for encode to work, when using PowerShell:

C:\Users\lbakken\opt\rabbitmq\rabbitmq_server-4.0.6
> .\sbin\rabbitmqctl.bat encode '"<<\"ABC\">>"' 1234
Encrypting value to be used in advanced.config...
{encrypted,<<"K9CcSy8t5y9olNyiGsMFOTXn2sZWt9CAxwuWM3oXlO3e88jjggFTWhNhtb1CVrAM">>}

C:\Users\lbakken\opt\rabbitmq\rabbitmq_server-4.0.6
> .\sbin\rabbitmqctl.bat decode '"<<\"K9CcSy8t5y9olNyiGsMFOTXn2sZWt9CAxwuWM3oXlO3e88jjggFTWhNhtb1CVrAM\">>"'
Decrypting an advanced.config (Erlang term) value...
Passphrase:
1234
<<"ABC">>

I will see what documentation I can update.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by michaelklishin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg-windows An issue specific to Windows
2 participants
Converted from issue

This discussion was converted from issue #13424 on February 25, 2025 17:02.