Skip to content

aspnet:8.0-jammy-chiseled-extra - Issue with sqlserver/openssl.cnf #5318

Answered by akoken
wbtholl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

The following configuration worked in my case.

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build

RUN sed -i 's/DEFAULT:@SECLEVEL=2/ALL:@SECLEVEL=0/g' /etc/ssl/openssl.cnf
RUN sed -i 's/DEFAULT:@SECLEVEL=2/ALL:@SECLEVEL=0/g' /usr/lib/ssl/openssl.cnf

...
WORKDIR /src
...

FROM base AS final
 
COPY --from=build /etc/ssl/openssl.cnf /etc/ssl/openssl.cnf
COPY --from=build /usr/lib/ssl/openssl.cnf /usr/lib/ssl/openssl.cnf
 
WORKDIR /app
COPY --from=build /app/publish .
...

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wbtholl
Comment options

@akoken
Comment options

Answer selected by wbtholl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants