> I get the impression that File encryption is only available when
> running a server? and SSL also for that matter?
Your impression is wrong. File encryption is supported for embedded
databases as well. See
http://www.h2database.com/html/features.html#file_encryption
> Is SSL and File Encryption also available for the embedded version of
> H2?
Yes.
Regards,
Thomas
> I've figured it out with your help!
I will try to improve the documentation. Currently it doesn't talk
about the different scenarios.
> Is it also possible to encrypt it from the start?
> Or do I always have to run the tool?
Yes, just open a connection to a new database using the encryption
parameters. I will also document that. Example:
jdbc:h2:~/newDatabase;CIPHER=AES
username: sa
password: filepw<space>sa
Regards,
Thomas
> I tried the following but was not able to create the encryption.
> jdbc:h2:~/newDatabase;CIPHER=AES
> username: sa
> password: test<space><space>
> password: test<space>
> password: test
>
> Wrong password format, must be: file password <space> user password
> [90050-107] 90050/90050
> I seem to fail to describe the default password I fear...
This is a problem of the H2 Console. Currently, the H2 Console trims
the password (removed leading and trailing spaces). This helps when
you copy & paste passwords from test files and so on. However in this
case (using a file encryption password but an empty user password)
it's bad.
I will change the H2 Console in the next release (no longer trim the
password field).
At the moment, you need to use non-empty user password, for example:
password: test<space>test
Regards,
Thomas