<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">You may have not run the openssl fipsinstall command.  <div class=""><br class=""></div><div class="">You should be able to perform ‘make install_fips’ after you do a make install. Then check your openssl.conf file and make sure it has the proper fipsmodule.cnf filename and loads the providers you want.</div><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 17, 2021, at 10:26 AM, Nagarjun J <<a href="mailto:1nagarjun1@gmail.com" class="">1nagarjun1@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class=""><br class=""></div><div class="">I am building Nginx application with openssl-3.0.0, i have added below code in main function of nginx application to load fips provider,</div><div class=""><br class=""></div><div class="">  OSSL_PROVIDER *fips;<br class="">       OSSL_PROVIDER *base;<br class=""><br class="">       fips = OSSL_PROVIDER_load(NULL, "fips");<br class="">       if (fips == NULL) {<br class="">           printf("Failed to load FIPS provider\n");<br class="">           exit(EXIT_FAILURE);<br class="">       }<br class="">       base = OSSL_PROVIDER_load(NULL, "base");<br class="">       if (base == NULL) {<br class="">           OSSL_PROVIDER_unload(fips);<br class="">           printf("Failed to load base provider\n");<br class="">           exit(EXIT_FAILURE);<br class="">       }<br class=""></div><div class=""><br class=""></div><div class="">but when I start the application it's giving <b class="">Failed to load FIPS provider </b>error , with initial debugging I found SELF_TEST_post is failing in below code st->module_checksum_data in null and returning  error.</div><div class=""><br class=""></div><div class="">    if (st == NULL<br class="">            || st->module_checksum_data == NULL) {<br class="">        ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_CONFIG_DATA);<br class="">        goto end;<br class="">    }<br class=""></div><div class=""><br class=""></div><div class="">Anything I am missing here?</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Nagarjun</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>