diff --git a/doc/POABackend.html b/doc/POABackend.html index 4ec9fc5..bf87dad 100644 --- a/doc/POABackend.html +++ b/doc/POABackend.html @@ -100,6 +100,25 @@
mix deps.get
 mix docs

That command will create a doc/ folder with the actual Documentation.

+

+ + Setting up Cert SSL +

+ +

POABackend uses https endpoints for Authorisation matters. In order to achieve that we have to set some configuration first. +We would need a .cert and a .key files. We can generate them easily running:

+
openssl genrsa -out localhost.key 2048
+openssl req -new -x509 -key localhost.key -out localhost.cert -days 3650 -subj /CN=localhost
+

Those command will create the needed files. Now we have to point them in the config file. Lets check the section :auth_rest

+
config :poa_backend,
+       :auth_rest,
+       [
+          {:scheme, :https},
+          {:port, 4003},
+          {:keyfile, "priv/keys/localhost.key"},
+          {:certfile, "priv/keys/localhost.cert"}
+       ]
+

Here we can choose the port for the Auth endpoints and we must put the paths to the files we created previously (look :keyfile and :certfile fields)

Configuring Databases for first time