Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Post History

60%
+1 −0
Q&A How to set update-crypto-policies to LEGACY in Dockerfile

So im trying to do RUN update-crypto-policies --set LEGACY in my Dockerfile as I was getting an error "Failed to load certificate from file 'client-rsa.pem':''ee key too small". But when I build...

2 answers  ·  posted 2y ago by Megan‭  ·  last activity 2y ago by Megan‭

#2: Post edited by user avatar Megan‭ · 2022-05-19T19:26:30Z (over 2 years ago)
  • So im trying to do `RUN update-crypto-policies --set LEGACY` in my Dockerfile as I was getting an error
  • `"Failed to load certificate from file 'client-rsa.pem':''ee key too small".
  • `
  • But when I build my Dockerfile I get an error `"#5 0.540 /bin/sh: update-crypto-policies: command not found"`
  • Could anyone please explain me why is this happening and how to set crypto-policies to LEGACY in dockerfile?
  • So im trying to do `RUN update-crypto-policies --set LEGACY` in my Dockerfile as I was getting an error
  • `"Failed to load certificate from file 'client-rsa.pem':''ee key too small".
  • `
  • But when I build my Dockerfile I get an error `"#5 0.540 /bin/sh: update-crypto-policies: command not found"`
  • Could anyone please explain me why is this happening and how to set crypto-policies to LEGACY in dockerfile?
  • Here is my entire Dockerfile-
  • ```
  • FROM arm64v8/oraclelinux:8
  • # Setup basic environment stuff
  • ENV container docker
  • ENV LANG en_US.UTF-8
  • ENV TZ EST
  • ENV DEBIAN_FRONTEND=noninteractive
  • RUN yum -y install crypto-policies-scripts
  • # Adding User and Group
  • RUN useradd -u 42065 testuser
  • # CCSMP dependent
  • RUN yum install -y wget
  • RUN yum install -y openssl-libs-1.1.1g-15.el8_3.aarch64
  • RUN yum install -y krb5-workstation krb5-libs krb5-devel
  • RUN yum install -y glibc-devel glibc-common
  • RUN yum install -y make gcc java-1.8.0-openjdk-devel tar perl maven svn openssl-devel gcc
  • RUN yum install -y gdb
  • RUN yum install -y openldap* openldap-clients nss-pam-ldapd
  • RUN yum install -y zlib-devel bzip2 bzip2-devel vim yum-utils sssd sssd-tools
  • # Minor changes to image to get ccsmp to build
  • RUN ln -s /usr/lib/jvm/java-1.8.0-openjdk /usr/lib/jvm/default-jvm
  • RUN cp /usr/include/linux/stddef.h /usr/include/stddef.h
  • # Install ant 1.10.12
  • RUN wget https://mirror.its.dal.ca/apache//ant/binaries/apache-ant-1.10.12-bin.zip
  • RUN unzip apache-ant-1.10.12-bin.zip && mv apache-ant-1.10.12/ /opt/ant
  • ENV JAVA_HOME /usr
  • ENV ANT_HOME="/usr/bin/ant"
  • ENV PATH="/usr/bin/ant:$PATH"
  • USER testuser
  • WORKDIR /home/testuser
  • CMD /bin/bash
#1: Initial revision by user avatar Megan‭ · 2022-05-19T15:22:08Z (over 2 years ago)
How to set update-crypto-policies to LEGACY in Dockerfile
So im trying to do `RUN update-crypto-policies --set LEGACY` in my Dockerfile as I was getting an error 

`"Failed to load certificate from file 'client-rsa.pem':''ee key too small".
`

But when I build my Dockerfile I get an error `"#5 0.540 /bin/sh: update-crypto-policies: command not found"`

Could anyone please explain me why is this happening and how to set crypto-policies to LEGACY in dockerfile?