Skip to content

PKCS12 not found by Identity and Server #51

Description

@WORMSTweaker

Hello,
I'm trying to deploy Stasis, so far it's been.... quite difficult to say the least...
Right now, my issue is that the container can't find my .p12, but I confirmed the file is loaded in the container properly
What could be the issue?

Inside the container (stasis-identity), checking for the existence of the file:

demiourgos728@e6b1487bb463:/opt/docker$ ls
bin  config  lib  secrets
demiourgos728@e6b1487bb463:/opt/docker$ ls secrets/
identity.p12  identity-signature-key.jwk.json
demiourgos728@e6b1487bb463:/opt/docker$

Docker container logs:

identity-1              | SLF4J(W): A number (3) of logging calls during the initialization phase have been intercepted and are
identity-1              | SLF4J(W): now being replayed. These are subject to the filtering rules of the underlying logging system.
identity-1              | SLF4J(W): See also https://www.slf4j.org/codes.html#replay
identity-1              | [2024-11-26 16:32:23,179] [INFO ] [o.a.p.event.slf4j.Slf4jLogger]: Slf4jLogger started
identity-1              | Exception in thread "main" java.lang.ExceptionInInitializerError
identity-1              |       at stasis.identity.Main.main(Main.scala)
identity-1              | Caused by: java.io.FileNotFoundException: Store [/opt/docker/secrets/identity.p12] with type [PKCS12] was not found
identity-1              |       at stasis.layers.security.tls.EndpointContext$.loadStore(EndpointContext.scala:110)
identity-1              |       at stasis.layers.security.tls.EndpointContext$.$anonfun$apply$3(EndpointContext.scala:41)
identity-1              |       at scala.Option.map(Option.scala:242)
identity-1              |       at stasis.layers.security.tls.EndpointContext$.apply(EndpointContext.scala:40)
identity-1              |       at stasis.layers.security.tls.EndpointContext$.apply(EndpointContext.scala:32)
identity-1              |       at stasis.identity.service.Service$Config$.apply(Service.scala:291)
identity-1              |       at stasis.identity.service.Service.$init$(Service.scala:53)
identity-1              |       at stasis.identity.Main$.<clinit>(Main.scala:5)
identity-1              |       ... 1 more
server-1                | SLF4J(W): A number (3) of logging calls during the initialization phase have been intercepted and are
server-1                | SLF4J(W): now being replayed. These are subject to the filtering rules of the underlying logging system.
server-1                | SLF4J(W): See also https://www.slf4j.org/codes.html#replay
server-1                | [2024-11-26 16:32:23,693] [INFO ] [o.a.p.event.slf4j.Slf4jLogger]: Slf4jLogger started
server-1                | Exception in thread "main" java.lang.ExceptionInInitializerError
server-1                |       at stasis.server.Main.main(Main.scala)
server-1                | Caused by: java.io.FileNotFoundException: Store [/opt/docker/secrets/server.p12] with type [PKCS12] was not found
server-1                |       at stasis.layers.security.tls.EndpointContext$.loadStore(EndpointContext.scala:110)
server-1                |       at stasis.layers.security.tls.EndpointContext$.$anonfun$apply$3(EndpointContext.scala:41)
server-1                |       at scala.Option.map(Option.scala:242)
server-1                |       at stasis.layers.security.tls.EndpointContext$.apply(EndpointContext.scala:40)
server-1                |       at stasis.layers.security.tls.EndpointContext$.apply(EndpointContext.scala:32)
server-1                |       at stasis.server.service.Service$Config$.apply(Service.scala:547)
server-1                |       at stasis.server.service.Service.$init$(Service.scala:74)
server-1                |       at stasis.server.Main$.<clinit>(Main.scala:5)
server-1                |       ... 1 more

Stasis page (not loading probably because it can't find the p12 file):
image

Unrelated to this issue, Stasis documentation and deployment instructions are a bit confusing and lack-luster in some area, and I'm not even sure I set things up properly or even generated the keys as wanted by Stasis. Some more details could be added with examples.

In any case, thank you in advance for the support

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtroubleshootingInvestigating setup issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions