parallaxsecond / parsec-openssl-provider

Parsec OpenSSL Provider
Apache License 2.0
1 stars 1 forks source link

Config issue with parsec provider #68

Open jainvikas8 opened 3 months ago

jainvikas8 commented 3 months ago

When following instructions on Debian (Unbuntu 22 LTS on a docker container) https://github.com/parallaxsecond/parsec-openssl-provider?tab=readme-ov-file#configuring-the-provider We see the issue of the provider not being configured correctly.

 $ openssl list -providers
Providers:
  default
    name: OpenSSL Default Provider
    version: 3.0.2
    status: active

but

$ openssl list -providers -provider-path /tmp/parsec-openssl-provider-shared/target/debug  -provider libparsec_openssl_provider_shared
[INFO  parsec_service::front::front_end] New request received without authentication
                                                                                    [INFO  parsec_service::front::front_end] Response sent back from request without authentication
                          [INFO  parsec_service::front::front_end] New request received without authentication
                                                                                                              [INFO  parsec_service::front::front_end] Response sent back from request without authentication
                                                    Providers:
  libparsec_openssl_provider_shared
    name: Parsec OpenSSL Provider
    version: 0.1.0
    status: active

works!!

If

[openssl_init]
providers = provider_sect

[provider_sect]
default = default_sect
parsec = parsec_sect

[parsec_sect]
module = /path-to-shared-library/libparsec_openssl_provider_shared.so
activate = 1

[default_sect]
activate = 1

are saved to openssl.cnf file and we configure OPENSSL_CONF=/tmp/openssl.cnf then it works....

It seems some config is missing or clarity in instructions would be good.