Unable to convert certificate CFData into SecItems

Gagnon Benjamin James bjgagnon at ecom-icom.hku.hk
Tue Jul 22 07:57:45 CEST 2014


Hey guys,

I am trying to get a fresh install of 2.25 stable working. I am
getting an odd error in debugging "Unable to convert certificate
CFData into SecItems" and I can't figure out where I have screwed up
in my eap.conf file or see any previous comments about this. Any guidance would help.
I am also curious about the "Apple:UseCertAdmin" that is by default in the eap.conf file
for the private_key_password field. What does this do?

thanks,

Ben

">

mac-03:raddb tapevents$ sudo radiusd -X

FreeRADIUS Version 2.2.0, for host i386-apple-darwin13.0, built on May
13 2014 at 17:28:11

Copyright (C) 1999-2012 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 v2.

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

}

}

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"

}

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: Creating Post-Auth-Type = REJECT

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 = "/Library/Server/radius/raddb/certs/ca.key"

certificate_file = "/Library/Server/radius/raddb/certs/server.pem"

CA_file = "/Library/Server/radius/raddb/certs/ca.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_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
/Library/Server/radius/raddb/certs/ca.key

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.


More information about the Freeradius-Users mailing list