Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread s7r
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Oh, right - sorry, misunderstood. In this case not using --keygen might be a workaround. I do understand the use of --nopass, I'll include it in the ticket and maybe we can have it along with --master-key and --out. On 11/15/2015 5:36 PM, nusenu

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread s7r
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 The "Enter passphrase" request when manually calling --keygen is optional, not mandatory. If you just leave it blank and proceed it will just create an unencrypted master identity key. On 11/14/2015 10:18 AM, nusenu wrote: > Hi, > > is there a way

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread nusenu
s7r: > The "Enter passphrase" request when manually calling --keygen is > optional, not mandatory. If you just leave it blank and proceed it > will just create an unencrypted master identity key. I know, but that requires someone to press enter (or a dirty expect script) if you want to run that

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread nusenu
>> The "Enter passphrase" request when manually calling --keygen is >> optional, not mandatory. If you just leave it blank and proceed it >> will just create an unencrypted master identity key. > > I know, but that requires someone to press enter (or a dirty expect > script) if you want to run

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread nusenu
> Maybe: > > echo "" | whatyouwanttodo --keygen > > or > > whatyouwanttodo --keygen < EOF Yes I tried that already, but no it does not work. That would require the program (tor) to read from sdtin - which it doesn't. solution: generate master keys non-interactively: tor --datadir data

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread Josef Stautner
Maybe: echo "" | whatyouwanttodo --keygen or whatyouwanttodo --keygen < EOF ~Josef Am 15.11.2015 um 16:26 schrieb nusenu: > > s7r: >> The "Enter passphrase" request when manually calling --keygen is >> optional, not mandatory. If you just leave it blank and proceed it >> will just create an

Re: [tor-dev] possible to run --keygen non-interactively?

2015-11-15 Thread teor
> On 16 Nov 2015, at 02:36, Josef Stautner wrote: > > EOF is false of course. > I mean < /dev/null of course :-) > >> Am 15.11.2015 um 16:28 schrieb Josef Stautner: >> Maybe: >> >> echo "" | whatyouwanttodo --keygen >> >> or >> >> whatyouwanttodo --keygen < EOF These

[tor-dev] possible to run --keygen non-interactively?

2015-11-14 Thread nusenu
Hi, is there a way to use tor --keygen non-interactively? background: I might want to integrate offline master key functionality into ansible-relayor [1]. The basic idea is to generate the master keys on the ansible client and push only the required signing keys to the relays (master keys never