Replacing SSL certificate?

Dave Walsh dave_walsh at lsrhs.net
Fri Sep 3 13:56:07 CEST 2021


My SSL certificate is expiring and I need to install a replacement, but
everytime I just try radiusconfig -installcerts the debug log shows it's
unable to instantiate module eap because of an error

rlm_eap_tls: retrieving password from keychain for private key file
/Users/admin/Desktop/August 2021 keys/lsrhs2021combo.pem

rlm_eap_tls: Unable to convert certificate CFData into SecItems

rlm_eap_tls: Error reading private key password from keychain

rlm_eap: Failed to initialize type tls

/Library/Server/radius/raddb/eap.conf[17]: Instantiation failed for module
"eap"

/Library/Server/radius/raddb/sites-enabled/default[321]: Failed to find
"eap" in the "modules" section.

/Library/Server/radius/raddb/sites-enabled/default[256]: Errors parsing
authenticate section.

Am I just missing a step? Is there a how-to guide that I just haven't been
able to find?

All suggestions appreciated!

Thanks.

full debug output:

sh-3.2# radiusd -X

radiusd: FreeRADIUS Version 2.2.9, for host i386-apple-darwin13.0, built on
Sep 15 2016 at 12:27:36

Copyright (C) 1999-2015 The FreeRADIUS server project and contributors.

There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A

PARTICULAR PURPOSE.

You may redistribute copies of FreeRADIUS under the terms of the

GNU General Public License.

For more information about these matters, see the file named COPYRIGHT.

Starting - reading configuration files ...

including configuration file /Library/Server/radius/raddb/radiusd.conf

including configuration file /Library/Server/radius/raddb/proxy.conf

including configuration file /Library/Server/radius/raddb/clients.conf

including files in directory /Library/Server/radius/raddb/modules/

including configuration file
/Library/Server/radius/raddb/modules/acct_unique

including configuration file /Library/Server/radius/raddb/modules/always

including configuration file
/Library/Server/radius/raddb/modules/attr_filter

including configuration file
/Library/Server/radius/raddb/modules/attr_rewrite

including configuration file /Library/Server/radius/raddb/modules/cache

including configuration file /Library/Server/radius/raddb/modules/chap

including configuration file /Library/Server/radius/raddb/modules/checkval

including configuration file /Library/Server/radius/raddb/modules/counter

including configuration file /Library/Server/radius/raddb/modules/cui

including configuration file /Library/Server/radius/raddb/modules/detail

including configuration file /Library/Server/radius/raddb/modules/
detail.example.com

including configuration file /Library/Server/radius/raddb/modules/detail.log

including configuration file
/Library/Server/radius/raddb/modules/dhcp_sqlippool

including configuration file
/Library/Server/radius/raddb/sql/mysql/ippool-dhcp.conf

including configuration file /Library/Server/radius/raddb/modules/digest

including configuration file
/Library/Server/radius/raddb/modules/dynamic_clients

including configuration file /Library/Server/radius/raddb/modules/echo

including configuration file /Library/Server/radius/raddb/modules/etc_group

including configuration file /Library/Server/radius/raddb/modules/exec

including configuration file /Library/Server/radius/raddb/modules/expiration

including configuration file /Library/Server/radius/raddb/modules/expr

including configuration file /Library/Server/radius/raddb/modules/files

including configuration file /Library/Server/radius/raddb/modules/inner-eap

including configuration file /Library/Server/radius/raddb/modules/ippool

including configuration file /Library/Server/radius/raddb/modules/krb5

including configuration file /Library/Server/radius/raddb/modules/ldap

including configuration file /Library/Server/radius/raddb/modules/linelog

including configuration file /Library/Server/radius/raddb/modules/logintime

including configuration file /Library/Server/radius/raddb/modules/mac2ip

including configuration file /Library/Server/radius/raddb/modules/mac2vlan

including configuration file /Library/Server/radius/raddb/modules/mschap

including configuration file /Library/Server/radius/raddb/modules/ntlm_auth

including configuration file
/Library/Server/radius/raddb/modules/opendirectory

including configuration file /Library/Server/radius/raddb/modules/otp

including configuration file /Library/Server/radius/raddb/modules/pam

including configuration file /Library/Server/radius/raddb/modules/pap

including configuration file /Library/Server/radius/raddb/modules/passwd

including configuration file /Library/Server/radius/raddb/modules/perl

including configuration file /Library/Server/radius/raddb/modules/policy

including configuration file /Library/Server/radius/raddb/modules/preprocess

including configuration file /Library/Server/radius/raddb/modules/radrelay

including configuration file /Library/Server/radius/raddb/modules/radutmp

including configuration file /Library/Server/radius/raddb/modules/realm

including configuration file /Library/Server/radius/raddb/modules/redis

including configuration file /Library/Server/radius/raddb/modules/rediswho

including configuration file /Library/Server/radius/raddb/modules/replicate

including configuration file /Library/Server/radius/raddb/modules/smbpasswd

including configuration file /Library/Server/radius/raddb/modules/smsotp

including configuration file /Library/Server/radius/raddb/modules/soh

including configuration file /Library/Server/radius/raddb/modules/sql_log

including configuration file
/Library/Server/radius/raddb/modules/sqlcounter_expire_on_login

including configuration file /Library/Server/radius/raddb/modules/sradutmp

including configuration file /Library/Server/radius/raddb/modules/unix

including configuration file /Library/Server/radius/raddb/modules/wimax

including configuration file /Library/Server/radius/raddb/eap.conf

including configuration file /Library/Server/radius/raddb/sql.conf

including configuration file
/Library/Server/radius/raddb/sql/sqlite/dialup.conf

including configuration file /Library/Server/radius/raddb/policy.conf

including files in directory /Library/Server/radius/raddb/sites-enabled/

including configuration file
/Library/Server/radius/raddb/sites-enabled/control-socket

including configuration file
/Library/Server/radius/raddb/sites-enabled/default

including configuration file
/Library/Server/radius/raddb/sites-enabled/inner-tunnel

main {

allow_core_dumps = no

}

including dictionary file /Library/Server/radius/raddb/dictionary

main {

name = "radiusd"

prefix = "/Applications/Server.app/Contents/ServerRoot/usr"

localstatedir = "/private/var"

sbindir = "/Applications/Server.app/Contents/ServerRoot/usr/sbin"

logdir = "/private/var/log/radius"

run_dir = "/private/var"

libdir = "/Applications/Server.app/Contents/ServerRoot/usr/lib/freeradius"

radacctdir = "/private/var/log/radius/radacct"

hostname_lookups = no

max_request_time = 30

cleanup_delay = 5

max_requests = 1024

pidfile = "/private/var/radiusd.pid"

checkrad = "/Applications/Server.app/Contents/ServerRoot/usr/sbin/checkrad"

debug_level = 0

proxy_requests = yes

 log {

  stripped_names = no

  auth = no

  auth_badpass = no

  auth_goodpass = no

 }

 security {

  max_attributes = 200

  reject_delay = 1

  status_server = yes

  allow_vulnerable_openssl = no

 }

}

radiusd: #### Loading Realms and Home Servers ####

 proxy server {

  retry_delay = 5

  retry_count = 3

  default_fallback = no

  dead_time = 120

  wake_all_if_all_dead = no

 }

 home_server localhost {

  ipaddr = 127.0.0.1

  port = 1812

  type = "auth"

  secret = "testing123"

  response_window = 20

  max_outstanding = 65536

  require_message_authenticator = yes

  zombie_period = 40

  status_check = "status-server"

  ping_interval = 30

  check_interval = 30

  num_answers_to_alive = 3

  num_pings_to_alive = 3

  revive_interval = 120

  status_check_timeout = 4

  coa {

  irt = 2

  mrt = 16

  mrc = 5

  mrd = 30

  }

 }

 home_server_pool my_auth_failover {

type = fail-over

home_server = localhost

 }

 realm example.com {

auth_pool = my_auth_failover

 }

 realm LOCAL {

 }

radiusd: #### Loading Clients ####

 client localhost {

  ipaddr = 127.0.0.1

  require_message_authenticator = no

  secret = "testing123"

  nastype = "other"

 }

 client 10.100.0.0/16 {

  require_message_authenticator = no

  secret = "<redacted>"

  shortname = "aruba"

  nastype = "other"

 }

radiusd: #### Instantiating modules ####

 instantiate {

 Module: Linked to module rlm_exec

 Module: Instantiating module "exec" from file
/Library/Server/radius/raddb/modules/exec

  exec {

  wait = no

  input_pairs = "request"

  shell_escape = yes

  }

 Module: Linked to module rlm_expr

 Module: Instantiating module "expr" from file
/Library/Server/radius/raddb/modules/expr

 Module: Linked to module rlm_expiration

 Module: Instantiating module "expiration" from file
/Library/Server/radius/raddb/modules/expiration

  expiration {

  reply-message = "Password Has Expired  "

  }

 Module: Linked to module rlm_logintime

 Module: Instantiating module "logintime" from file
/Library/Server/radius/raddb/modules/logintime

  logintime {

  reply-message = "You are calling outside your allowed timespan  "

  minimum-timeout = 60

  }

 Module: Linked to module rlm_sql

 Module: Instantiating module "sql" from file
/Library/Server/radius/raddb/sql.conf

  sql {

  driver = "rlm_sql_sqlite"

  server = "localhost"

  port = ""

  login = "radius"

  password = "radpass"

  radius_db = "radius"

  read_groups = yes

  sqltrace = no

  sqltracefile = "/private/var/log/radius/sqltrace.sql"

  readclients = yes

  deletestalesessions = yes

  num_sql_socks = 5

  lifetime = 0

  max_queries = 0

  sql_user_name = "%{User-Name}"

  default_user_profile = ""

  nas_query = "SELECT id,nasname,shortname,type,secret FROM nas"

  authorize_check_query = ""

  authorize_group_check_query = ""

  authorize_group_reply_query = ""

  accounting_onoff_query = ""

  accounting_update_query = ""

  accounting_update_query_alt = ""

  accounting_start_query = ""

  accounting_start_query_alt = ""

  accounting_stop_query = ""

  accounting_stop_query_alt = ""

  connect_failure_retry_delay = 60

  simul_count_query = ""

  simul_verify_query = ""

  postauth_query = ""

  safe-characters =
"@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"

  }

rlm_sql (sql): Driver rlm_sql_sqlite (module rlm_sql_sqlite) loaded and
linked

rlm_sql (sql): Attempting to connect to radius at localhost:/radius

rlm_sql (sql): starting 0

rlm_sql (sql): Attempting to connect rlm_sql_sqlite #0

rlm_sql_sqlite: Opening sqlite database
/Library/Server/radius/raddb/sqlite_radius_client_database for #0

rlm_sql_sqlite: sqlite3_open() = 0

rlm_sql (sql): Connected new DB handle, #0

rlm_sql (sql): starting 1

rlm_sql (sql): Attempting to connect rlm_sql_sqlite #1

rlm_sql_sqlite: Opening sqlite database
/Library/Server/radius/raddb/sqlite_radius_client_database for #1

rlm_sql_sqlite: sqlite3_open() = 0

rlm_sql (sql): Connected new DB handle, #1

rlm_sql (sql): starting 2

rlm_sql (sql): Attempting to connect rlm_sql_sqlite #2

rlm_sql_sqlite: Opening sqlite database
/Library/Server/radius/raddb/sqlite_radius_client_database for #2

rlm_sql_sqlite: sqlite3_open() = 0

rlm_sql (sql): Connected new DB handle, #2

rlm_sql (sql): starting 3

rlm_sql (sql): Attempting to connect rlm_sql_sqlite #3

rlm_sql_sqlite: Opening sqlite database
/Library/Server/radius/raddb/sqlite_radius_client_database for #3

rlm_sql_sqlite: sqlite3_open() = 0

rlm_sql (sql): Connected new DB handle, #3

rlm_sql (sql): starting 4

rlm_sql (sql): Attempting to connect rlm_sql_sqlite #4

rlm_sql_sqlite: Opening sqlite database
/Library/Server/radius/raddb/sqlite_radius_client_database for #4

rlm_sql_sqlite: sqlite3_open() = 0

rlm_sql (sql): Connected new DB handle, #4

rlm_sql (sql): Processing generate_sql_clients

rlm_sql (sql) in generate_sql_clients: query is SELECT
id,nasname,shortname,type,secret FROM nas

rlm_sql (sql): Reserving sql socket id: 4

rlm_sql_sqlite: sqlite3_prepare() = 0

rlm_sql_sqlite: sqlite3_step = 101

rlm_sql_sqlite: sqlite3_finalize() = 0

rlm_sql (sql): Released sql socket id: 4

 }

radiusd: #### Loading Virtual Servers ####

server { # from file /Library/Server/radius/raddb/radiusd.conf

 modules {

  Module: Creating Auth-Type = digest

  Module: Creating Auth-Type = opendirectory

 Module: Checking authenticate {...} for more modules to load

 Module: Linked to module rlm_pap

 Module: Instantiating module "pap" from file
/Library/Server/radius/raddb/modules/pap

  pap {

  encryption_scheme = "auto"

  auto_header = no

  }

 Module: Linked to module rlm_chap

 Module: Instantiating module "chap" from file
/Library/Server/radius/raddb/modules/chap

 Module: Linked to module rlm_mschap

 Module: Instantiating module "mschap" from file
/Library/Server/radius/raddb/modules/mschap

  mschap {

  use_mppe = yes

  require_encryption = no

  require_strong = no

  with_ntdomain_hack = no

  allow_retry = yes

  use_open_directory = yes

  }

 Module: Linked to module rlm_digest

 Module: Instantiating module "digest" from file
/Library/Server/radius/raddb/modules/digest

 Module: Linked to module rlm_opendirectory

 Module: Instantiating module "opendirectory" from file
/Library/Server/radius/raddb/modules/opendirectory

 Module: Linked to module rlm_unix

 Module: Instantiating module "unix" from file
/Library/Server/radius/raddb/modules/unix

  unix {

  radwtmp = "/private/var/log/radius/radwtmp"

  }

 Module: Linked to module rlm_eap

 Module: Instantiating module "eap" from file
/Library/Server/radius/raddb/eap.conf

  eap {

  default_eap_type = "ttls"

  timer_expire = 60

  ignore_unknown_eap_types = no

  cisco_accounting_username_bug = no

  max_sessions = 4096

  }

 Module: Linked to sub-module rlm_eap_md5

 Module: Instantiating eap-md5

 Module: Linked to sub-module rlm_eap_leap

 Module: Instantiating eap-leap

 Module: Linked to sub-module rlm_eap_gtc

 Module: Instantiating eap-gtc

   gtc {

   challenge = "Password: "

   auth_type = "PAP"

   }

 Module: Linked to sub-module rlm_eap_tls

 Module: Instantiating eap-tls

   tls {

   rsa_key_exchange = no

   dh_key_exchange = yes

   rsa_key_length = 512

   dh_key_length = 512

   verify_depth = 0

   CA_path = "/Library/Server/radius/raddb/certs"

   pem_file_type = yes

   private_key_file = "/Users/admin/Desktop/August 2021
keys/lsrhs2021combo.pem"

   certificate_file = "/Users/admin/Desktop/August 2021
keys/lsrhs2021combo.pem"

   CA_file = "/Users/admin/Desktop/August 2021 keys/lsrhs2021combo.pem"

   private_key_password = "Apple:UseCertAdmin"

   dh_file = "/Library/Server/radius/raddb/certs/dh"

   random_file = "/Library/Server/radius/raddb/certs/random"

   fragment_size = 1024

   include_length = yes

   check_crl = no

   check_all_crl = no

   check_cert_cn = "%{User-Name}"

   cipher_list = "DEFAULT"

   make_cert_command = "/Library/Server/radius/raddb/certs/bootstrap"

   ecdh_curve = "prime256v1"

    cache {

    enable = no

    lifetime = 24

    max_entries = 255

    }

    verify {

    }

    ocsp {

    enable = no

    override_cert_url = yes

    url = "http://127.0.0.1/ocsp/"

    use_nonce = yes

    timeout = 0

    softfail = no

    }

   }

rlm_eap_tls: retrieving password from keychain for private key file
/Users/admin/Desktop/August 2021 keys/lsrhs2021combo.pem

rlm_eap_tls: Unable to convert certificate CFData into SecItems

rlm_eap_tls: Error reading private key password from keychain

rlm_eap: Failed to initialize type tls

/Library/Server/radius/raddb/eap.conf[17]: Instantiation failed for module
"eap"

/Library/Server/radius/raddb/sites-enabled/default[321]: Failed to find
"eap" in the "modules" section.

/Library/Server/radius/raddb/sites-enabled/default[256]: Errors parsing
authenticate section.

sh-3.2#

-Dave Walsh
Network Administrator
Lincoln-Sudbury Regional HS
Sudbury, MA 01776
(978) 443-9961 x3336


More information about the Freeradius-Users mailing list