To run pkcsslotd automatically, add the following line to /etc/rc.conf pkcsslotd_enable="YES" To use PKCS#11 token, add your_account to '%%GROUPS%%' like following: # pw groupadd %%GROUPS%% -m your_account