WEB DataBase Browser Application.
git clone https://github.com/K2InformaticsGmbH/dderl
in $ROOT
$ROOT/dderl
NO_OCI=true rebar3 compile
priv/dev
yarn install-build-prod
$ROOT/dderl
./start.sh
DDErl runs on SSL. A default certificate/key pair is supplied. This, however can be changed either by replacing these files at installation or modifying configuration in ddConfig
table ([{dderl,dderl,dderlSslOpts}]
). A sample configuration is given below:
[{cert,<<48,...,107>>},
{key,{'RSAPrivateKey',<<48,...,192>>}},
{versions,['tlsv1.2','tlsv1.1',tlsv1]}]
erlang:ssl
describes all possible options above.
To convert a PEM crt/key files to DER (accepted by erlang SSL binary certificate/key option above) public_key:pem_decode/1
may be used as follows to obtain the DER binary of the PEM certificate files:
> {ok, PemCrt} = file:read_file("server.crt").
{ok,<<"-----BEGIN CERTIFICATE-----\nMIICyTC"...>>}
> public_key:pem_decode(PemCrt).
[{'Certificate',<<48,130,2,201,48,130,2,50,2,9,0,241,25,...>>,not_encrypted}]
> {ok, PemKey} = file:read_file("server.key").
{ok,<<"-----BEGIN RSA PRIVATE KEY-----\nMIICXAI"...>>}
> public_key:pem_decode(PemKey).
[{'RSAPrivateKey',<<48,130,2,92,2,1,0,2,129,129,0,160,95,...>>,not_encrypted}]