Wind River Support Network


LINCD-2541 : freeradius : run bootstrap failed, when boot with local disk

Created: Jul 8, 2020    Updated: Aug 4, 2020
Resolved Date: Jul 16, 2020
Found In Version:
Fix Version:
Severity: Standard
Applicable for: Wind River Linux CD
Component/s: Userspace


1, --machine=intel-x86-64 --dl-layers --all-layers

2, source environment-setup-x86_64-wrlinuxsdk-linux && source oe-init-build-env build

3, add below line to conf/local.conf

IMAGE_INSTALL_append = " freeradius freeradius-utils  openssl-bin"

4, bitbake wrlinux-image-std

5, boot the target
 # # ps -e | grep radiusd
     971 ?        00:00:00 radiusd
 # # systemctl stop radiusd
 # # hostname localhost
 # # cp -v /etc/nsswitch.conf /etc/nsswitch.conf.bak
 # sed -i '/^hosts/d' /etc/nsswitch.conf
 # # echo "hosts:          files" >> /etc/nsswitch.conf
 # # ./bootstrap
 openssl ca -batch -keyfile ca.key -cert ca.pem -in server.csr  -key 'whatever' -out server.crt -extensions xpserver_ext -extfile xpextensions -config ./server.cnf
 Using configuration from ./server.cnf
 Check that the request matches the signature
 Signature ok
 ERROR:There is already a certificate for /C=FR/ST=Radius/O=Example Inc./CN=Example Server [ Certificate/|mailto:Certificate/]
 The matching entry has the following details
 Type          :Valid
 Expires on    :200904161209Z
 Serial Number :01
 File name     :unknown
 Subject Name  :/C=FR/ST=Radius/O=Example Inc./CN=Example Server [ Certificate/|mailto:Certificate/]
 make: *** [Makefile:95: server.crt] Error 1

Steps to Reproduce

1)  --------------------  
      --machine intel-x86-64 --dl-layers --distro wrlinux-cgl --templates feature/xfce feature/LAMP feature/cut feature/gcc-sanitizers feature/gperftools feature/intel-openvino feature/ipmi feature/ipv6 feature/krb5 feature/linux-yocto-dev feature/userspace-next feature/toolchain-next feature/lttng feature/mariadb feature/network-bond-libteam feature/nfsd feature/ntp feature/package-management feature/ptest feature/software-entropy feature/sysklogd feature/system-stats feature/target-toolchain feature/tcpslice feature/tensorflow --layers meta-filesystems meta-security-compliance meta-tensorflow meta-virtualization --dl-layers
2) . oe-init-build-env

3) vim conf/local.conf

IMAGE_INSTALL_append = " freeradius freeradius-utils  openssl-bin"


5) bitbake wrlinux-image-glibc-cgl

6) boot the target with HDD.
Live chat