PSK Secret » History » Version 5
Version 4 (Tobias Brunner, 11.05.2011 12:54) → Version 5/6 (Tobias Brunner, 14.12.2011 17:48)
h1. PSK Secret
A preshared secret is most conveniently represented as a sequence of characters, which is delimited by double-quote characters ("). The sequence cannot contain a newline or double-quote characters.
Alternatively, preshared secrets can be represented as hexadecimal or Base64 encoded binary values. A character double-quote. Strictly speaking, the secret is actually the sequence beginning with 0x of bytes that is interpreted as used in the file to represent the sequence hexadecimal digits. Similarly, a character sequence beginning with 0s is interpreted as Base64 encoded binary data. of characters (excluding the delimiters).
h2. Notation
[ _<id selectors>_ ] : PSK _<secret>_
h2. Examples
<pre>
@moon.strongswan.org @sun.strongswan.org : PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
@moon.strongswan.org %any : PSK 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
@sun.strongswan.org : PSK "This is a strong password"
carol@strongswan.org : PSK "0sFpZAZqEN6Ti9sqt4ZP5EWcqx"
: PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
</pre>
A preshared secret is most conveniently represented as a sequence of characters, which is delimited by double-quote characters ("). The sequence cannot contain a newline or double-quote characters.
Alternatively, preshared secrets can be represented as hexadecimal or Base64 encoded binary values. A character double-quote. Strictly speaking, the secret is actually the sequence beginning with 0x of bytes that is interpreted as used in the file to represent the sequence hexadecimal digits. Similarly, a character sequence beginning with 0s is interpreted as Base64 encoded binary data. of characters (excluding the delimiters).
h2. Notation
[ _<id selectors>_ ] : PSK _<secret>_
h2. Examples
<pre>
@moon.strongswan.org @sun.strongswan.org : PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
@moon.strongswan.org %any : PSK 0sFpZAZqEN6Ti9sqt4ZP5EWcqx
@sun.strongswan.org : PSK "This is a strong password"
carol@strongswan.org : PSK "0sFpZAZqEN6Ti9sqt4ZP5EWcqx"
: PSK 0sv+NkxY9LLZvwj4qCC2o/gGrWDF2d21jL
</pre>