diff --git a/src/utils/cryptopro.c b/src/utils/cryptopro.c index e7a8de1..d15bdd3 100644 --- a/src/utils/cryptopro.c +++ b/src/utils/cryptopro.c @@ -383,8 +383,10 @@ get_signer_cert(const cryptopro_context_t *ctx, HCERTSTORE hStoreHandle) goto error; } - if (set_password(cert_ctx, ctx->password)) { - goto error; + if (!str_t_is_null(*ctx->password)) { + if (set_password(cert_ctx, ctx->password)) { + goto error; + } } LOG_DEBUG("The signer's certificate was found");