-
Type: Support
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: OpenDNSSEC 2.1
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:
Red Hat Enterprise Linux Server release 7.9. OpenDNSSEC2.1.12.
The ods-hsmutil (and other ods commands as well) aborts when unable to set the LOCALE that was imported from a user logging in through SSH:
ssh ops-sign02-t Last login: Fri Dec 16 13:57:57 2022 from 10.20.241.3 -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory [jeroenb@ops-sign02-t ~]$ sudo -s [sudo] password for jeroenb: [root@ops-sign02-t]# [root@ops-sign02-t]# ps -ef | grep [o]ds [root@ops-sign02-t]# [root@ops-sign02-t]# [root@ops-sign02-t]# ods-hsmutil list HSM-TST terminate called after throwing an instance of 'std::runtime_error' what(): locale::facet::_S_create_c_locale name not valid Aborted [root@ops-sign02-t]# unset LC_CTYPE [root@ops-sign02-t]# ods-hsmutil list HSM-TST Listing keys in repository: HSM-TST 28 keys found.Repository ID Type ---------- -- ---- [snip] [root@ops-sign02-t]#
This could be handled more gracefully.