Advertisement
Guest User

Untitled

a guest
Mar 5th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. prefix = /usr
  2. exec_prefix = /usr
  3. sysconfdir = /etc
  4. localstatedir = /var
  5. sbindir = /usr/sbin
  6. logdir = ${localstatedir}/log/radius
  7. raddbdir = ${sysconfdir}/raddb
  8. radacctdir = ${logdir}/radacct
  9. name = radiusd
  10. confdir = ${raddbdir}
  11. run_dir = ${localstatedir}/run/${name}
  12. db_dir = ${raddbdir}
  13. libdir = /usr/lib64/freeradius
  14. pidfile = ${run_dir}/${name}.pid
  15. user = radiusd
  16. group = radiusd
  17. max_request_time = 30
  18. cleanup_delay = 5
  19. max_requests = 1024
  20. listen {
  21. type = auth
  22. ipaddr = *
  23. port = 0
  24. }
  25. listen {
  26. ipaddr = *
  27. port = 0
  28. type = acct
  29. }
  30. hostname_lookups = no
  31. allow_core_dumps = no
  32. regular_expressions = yes
  33. extended_expressions = yes
  34. log {
  35. syslog_facility = daemon
  36. stripped_names = no
  37. auth = no
  38. auth_badpass = no
  39. auth_goodpass = no
  40. }
  41. checkrad = ${sbindir}/checkrad
  42. security {
  43. max_attributes = 200
  44. reject_delay = 1
  45. status_server = yes
  46. }
  47. proxy_requests = yes
  48. $INCLUDE proxy.conf
  49. $INCLUDE clients.conf
  50. thread pool {
  51. start_servers = 5
  52. max_servers = 32
  53. min_spare_servers = 3
  54. max_spare_servers = 10
  55. max_requests_per_server = 0
  56. }
  57.  
  58. modules {
  59. $INCLUDE ${confdir}/modules/
  60. $INCLUDE eap.conf
  61. }
  62.  
  63. instantiate {
  64. exec
  65. expr
  66. expiration
  67. logintime
  68. }
  69. $INCLUDE policy.conf
  70. $INCLUDE sites-enabled/
  71.  
  72. [ ca ]
  73.  
  74. default_ca = CA_default
  75.  
  76. [ CA_default ]
  77.  
  78. dir = ./
  79.  
  80. certs = $dir
  81.  
  82. crl_dir = $dir/crl
  83.  
  84. database = $dir/index.txt
  85.  
  86. new_certs_dir = $dir
  87.  
  88. certificate = $dir/server.pem
  89.  
  90. serial = $dir/serial
  91.  
  92. crl = $dir/crl.pem
  93.  
  94. private_key = $dir/server.key
  95.  
  96. RANDFILE = $dir/.rand
  97.  
  98. name_opt = ca_default
  99.  
  100. cert_opt = ca_default
  101.  
  102. default_days = 60
  103.  
  104. default_crl_days = 30
  105.  
  106. default_md = sha1
  107.  
  108. preserve = no
  109.  
  110. policy = policy_match
  111.  
  112.  
  113.  
  114. [ policy_match ]
  115.  
  116. countryName = match
  117.  
  118. stateOrProvinceName = match
  119.  
  120. organizationName = match
  121.  
  122. organizationalUnitName = optional
  123.  
  124. commonName = supplied
  125.  
  126. emailAddress = optional
  127.  
  128.  
  129.  
  130. [ policy_anything ]
  131.  
  132. countryName = optional
  133.  
  134. stateOrProvinceName = optional
  135.  
  136. localityName = optional
  137.  
  138. organizationName = optional
  139.  
  140. organizationalUnitName = optional
  141.  
  142. commonName = supplied
  143.  
  144. emailAddress = optional
  145.  
  146.  
  147.  
  148. [ req ]
  149.  
  150. prompt = no
  151.  
  152. distinguished_name = server
  153.  
  154. default_bits = 2048
  155.  
  156. input_password = whatever
  157.  
  158. output_password = whatever
  159.  
  160.  
  161.  
  162. [server]
  163.  
  164. countryName = FR
  165.  
  166. stateOrProvinceName = Radius
  167.  
  168. localityName = Somewhere
  169.  
  170. organizationName = Example Inc.
  171.  
  172. emailAddress = admin@example.com
  173.  
  174. commonName = "Example Server Certificate"
  175.  
  176. openssl ca -batch -keyfile ca.key -cert ca.pem -in server.csr -key `grep output_password ca.cnf |
  177.  
  178. sed 's/.*=//;s/^ *//'` -out server.crt -extensions xpserver_ext -extfile xpextensions -config
  179.  
  180. ./server.cnf
  181.  
  182. Using configuration from ./server.cnf
  183.  
  184. Check that the request matches the signature
  185.  
  186. Signature ok
  187.  
  188. Certificate Details:
  189.  
  190. Serial Number: 1 (0x1)
  191.  
  192. Validity
  193.  
  194. Not Before: Sep 17 15:55:12 2014 GMT
  195.  
  196. Not After : Nov 16 15:55:12 2014 GMT
  197.  
  198. Subject:
  199.  
  200. countryName = FR
  201.  
  202. stateOrProvinceName = Radius
  203.  
  204. organizationName = Example Inc.
  205.  
  206. commonName = Example Server Certificate
  207.  
  208. emailAddress = admin@example.com
  209.  
  210. X509v3 extensions:
  211.  
  212. X509v3 Extended Key Usage:
  213.  
  214. TLS Web Server Authentication
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement