java.security 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982
  1. #
  2. # This is the "master security properties file".
  3. #
  4. # An alternate java.security properties file may be specified
  5. # from the command line via the system property
  6. #
  7. # -Djava.security.properties=<URL>
  8. #
  9. # This properties file appends to the master security properties file.
  10. # If both properties files specify values for the same key, the value
  11. # from the command-line properties file is selected, as it is the last
  12. # one loaded.
  13. #
  14. # Also, if you specify
  15. #
  16. # -Djava.security.properties==<URL> (2 equals),
  17. #
  18. # then that properties file completely overrides the master security
  19. # properties file.
  20. #
  21. # To disable the ability to specify an additional properties file from
  22. # the command line, set the key security.overridePropertiesFile
  23. # to false in the master security properties file. It is set to true
  24. # by default.
  25. # In this file, various security properties are set for use by
  26. # java.security classes. This is where users can statically register
  27. # Cryptography Package Providers ("providers" for short). The term
  28. # "provider" refers to a package or set of packages that supply a
  29. # concrete implementation of a subset of the cryptography aspects of
  30. # the Java Security API. A provider may, for example, implement one or
  31. # more digital signature algorithms or message digest algorithms.
  32. #
  33. # Each provider must implement a subclass of the Provider class.
  34. # To register a provider in this master security properties file,
  35. # specify the Provider subclass name and priority in the format
  36. #
  37. # security.provider.<n>=<className>
  38. #
  39. # This declares a provider, and specifies its preference
  40. # order n. The preference order is the order in which providers are
  41. # searched for requested algorithms (when no specific provider is
  42. # requested). The order is 1-based; 1 is the most preferred, followed
  43. # by 2, and so on.
  44. #
  45. # <className> must specify the subclass of the Provider class whose
  46. # constructor sets the values of various properties that are required
  47. # for the Java Security API to look up the algorithms or other
  48. # facilities implemented by the provider.
  49. #
  50. # There must be at least one provider specification in java.security.
  51. # There is a default provider that comes standard with the JDK. It
  52. # is called the "SUN" provider, and its Provider subclass
  53. # named Sun appears in the sun.security.provider package. Thus, the
  54. # "SUN" provider is registered via the following:
  55. #
  56. # security.provider.1=sun.security.provider.Sun
  57. #
  58. # (The number 1 is used for the default provider.)
  59. #
  60. # Note: Providers can be dynamically registered instead by calls to
  61. # either the addProvider or insertProviderAt method in the Security
  62. # class.
  63. #
  64. # List of providers and their preference orders (see above):
  65. #
  66. security.provider.1=sun.security.provider.Sun
  67. security.provider.2=sun.security.rsa.SunRsaSign
  68. security.provider.3=sun.security.ec.SunEC
  69. security.provider.4=com.sun.net.ssl.internal.ssl.Provider
  70. security.provider.5=com.sun.crypto.provider.SunJCE
  71. security.provider.6=sun.security.jgss.SunProvider
  72. security.provider.7=com.sun.security.sasl.Provider
  73. security.provider.8=org.jcp.xml.dsig.internal.dom.XMLDSigRI
  74. security.provider.9=sun.security.smartcardio.SunPCSC
  75. security.provider.10=sun.security.mscapi.SunMSCAPI
  76. #
  77. # Sun Provider SecureRandom seed source.
  78. #
  79. # Select the primary source of seed data for the "SHA1PRNG" and
  80. # "NativePRNG" SecureRandom implementations in the "Sun" provider.
  81. # (Other SecureRandom implementations might also use this property.)
  82. #
  83. # On Unix-like systems (for example, Solaris/Linux/MacOS), the
  84. # "NativePRNG" and "SHA1PRNG" implementations obtains seed data from
  85. # special device files such as file:/dev/random.
  86. #
  87. # On Windows systems, specifying the URLs "file:/dev/random" or
  88. # "file:/dev/urandom" will enable the native Microsoft CryptoAPI seeding
  89. # mechanism for SHA1PRNG.
  90. #
  91. # By default, an attempt is made to use the entropy gathering device
  92. # specified by the "securerandom.source" Security property. If an
  93. # exception occurs while accessing the specified URL:
  94. #
  95. # SHA1PRNG:
  96. # the traditional system/thread activity algorithm will be used.
  97. #
  98. # NativePRNG:
  99. # a default value of /dev/random will be used. If neither
  100. # are available, the implementation will be disabled.
  101. # "file" is the only currently supported protocol type.
  102. #
  103. # The entropy gathering device can also be specified with the System
  104. # property "java.security.egd". For example:
  105. #
  106. # % java -Djava.security.egd=file:/dev/random MainClass
  107. #
  108. # Specifying this System property will override the
  109. # "securerandom.source" Security property.
  110. #
  111. # In addition, if "file:/dev/random" or "file:/dev/urandom" is
  112. # specified, the "NativePRNG" implementation will be more preferred than
  113. # SHA1PRNG in the Sun provider.
  114. #
  115. securerandom.source=file:/dev/random
  116. #
  117. # A list of known strong SecureRandom implementations.
  118. #
  119. # To help guide applications in selecting a suitable strong
  120. # java.security.SecureRandom implementation, Java distributions should
  121. # indicate a list of known strong implementations using the property.
  122. #
  123. # This is a comma-separated list of algorithm and/or algorithm:provider
  124. # entries.
  125. #
  126. securerandom.strongAlgorithms=Windows-PRNG:SunMSCAPI,SHA1PRNG:SUN
  127. #
  128. # Class to instantiate as the javax.security.auth.login.Configuration
  129. # provider.
  130. #
  131. login.configuration.provider=sun.security.provider.ConfigFile
  132. #
  133. # Default login configuration file
  134. #
  135. #login.config.url.1=file:${user.home}/.java.login.config
  136. #
  137. # Class to instantiate as the system Policy. This is the name of the class
  138. # that will be used as the Policy object.
  139. #
  140. policy.provider=sun.security.provider.PolicyFile
  141. # The default is to have a single system-wide policy file,
  142. # and a policy file in the user's home directory.
  143. policy.url.1=file:${java.home}/lib/security/java.policy
  144. policy.url.2=file:${user.home}/.java.policy
  145. # whether or not we expand properties in the policy file
  146. # if this is set to false, properties (${...}) will not be expanded in policy
  147. # files.
  148. policy.expandProperties=true
  149. # whether or not we allow an extra policy to be passed on the command line
  150. # with -Djava.security.policy=somefile. Comment out this line to disable
  151. # this feature.
  152. policy.allowSystemProperty=true
  153. # whether or not we look into the IdentityScope for trusted Identities
  154. # when encountering a 1.1 signed JAR file. If the identity is found
  155. # and is trusted, we grant it AllPermission.
  156. policy.ignoreIdentityScope=false
  157. #
  158. # Default keystore type.
  159. #
  160. keystore.type=jks
  161. #
  162. # Controls compatibility mode for the JKS keystore type.
  163. #
  164. # When set to 'true', the JKS keystore type supports loading
  165. # keystore files in either JKS or PKCS12 format. When set to 'false'
  166. # it supports loading only JKS keystore files.
  167. #
  168. keystore.type.compat=true
  169. #
  170. # List of comma-separated packages that start with or equal this string
  171. # will cause a security exception to be thrown when
  172. # passed to checkPackageAccess unless the
  173. # corresponding RuntimePermission ("accessClassInPackage."+package) has
  174. # been granted.
  175. package.access=sun.,\
  176. com.sun.xml.internal.,\
  177. com.sun.imageio.,\
  178. com.sun.istack.internal.,\
  179. com.sun.jmx.,\
  180. com.sun.media.sound.,\
  181. com.sun.naming.internal.,\
  182. com.sun.proxy.,\
  183. com.sun.corba.se.,\
  184. com.sun.org.apache.bcel.internal.,\
  185. com.sun.org.apache.regexp.internal.,\
  186. com.sun.org.apache.xerces.internal.,\
  187. com.sun.org.apache.xpath.internal.,\
  188. com.sun.org.apache.xalan.internal.extensions.,\
  189. com.sun.org.apache.xalan.internal.lib.,\
  190. com.sun.org.apache.xalan.internal.res.,\
  191. com.sun.org.apache.xalan.internal.templates.,\
  192. com.sun.org.apache.xalan.internal.utils.,\
  193. com.sun.org.apache.xalan.internal.xslt.,\
  194. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  195. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  196. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  197. com.sun.org.apache.xalan.internal.xsltc.util.,\
  198. com.sun.org.apache.xml.internal.res.,\
  199. com.sun.org.apache.xml.internal.resolver.helpers.,\
  200. com.sun.org.apache.xml.internal.resolver.readers.,\
  201. com.sun.org.apache.xml.internal.security.,\
  202. com.sun.org.apache.xml.internal.serializer.utils.,\
  203. com.sun.org.apache.xml.internal.utils.,\
  204. com.sun.org.glassfish.,\
  205. com.oracle.xmlns.internal.,\
  206. com.oracle.webservices.internal.,\
  207. oracle.jrockit.jfr.,\
  208. org.jcp.xml.dsig.internal.,\
  209. jdk.internal.,\
  210. jdk.nashorn.internal.,\
  211. jdk.nashorn.tools.,\
  212. jdk.xml.internal.,\
  213. com.sun.activation.registries.,\
  214. com.sun.java.accessibility.,\
  215. com.sun.browser.,\
  216. com.sun.glass.,\
  217. com.sun.javafx.,\
  218. com.sun.media.,\
  219. com.sun.openpisces.,\
  220. com.sun.prism.,\
  221. com.sun.scenario.,\
  222. com.sun.t2k.,\
  223. com.sun.pisces.,\
  224. com.sun.webkit.,\
  225. jdk.management.resource.internal.
  226. #
  227. # List of comma-separated packages that start with or equal this string
  228. # will cause a security exception to be thrown when
  229. # passed to checkPackageDefinition unless the
  230. # corresponding RuntimePermission ("defineClassInPackage."+package) has
  231. # been granted.
  232. #
  233. # by default, none of the class loaders supplied with the JDK call
  234. # checkPackageDefinition.
  235. #
  236. package.definition=sun.,\
  237. com.sun.xml.internal.,\
  238. com.sun.imageio.,\
  239. com.sun.istack.internal.,\
  240. com.sun.jmx.,\
  241. com.sun.media.sound.,\
  242. com.sun.naming.internal.,\
  243. com.sun.proxy.,\
  244. com.sun.corba.se.,\
  245. com.sun.org.apache.bcel.internal.,\
  246. com.sun.org.apache.regexp.internal.,\
  247. com.sun.org.apache.xerces.internal.,\
  248. com.sun.org.apache.xpath.internal.,\
  249. com.sun.org.apache.xalan.internal.extensions.,\
  250. com.sun.org.apache.xalan.internal.lib.,\
  251. com.sun.org.apache.xalan.internal.res.,\
  252. com.sun.org.apache.xalan.internal.templates.,\
  253. com.sun.org.apache.xalan.internal.utils.,\
  254. com.sun.org.apache.xalan.internal.xslt.,\
  255. com.sun.org.apache.xalan.internal.xsltc.cmdline.,\
  256. com.sun.org.apache.xalan.internal.xsltc.compiler.,\
  257. com.sun.org.apache.xalan.internal.xsltc.trax.,\
  258. com.sun.org.apache.xalan.internal.xsltc.util.,\
  259. com.sun.org.apache.xml.internal.res.,\
  260. com.sun.org.apache.xml.internal.resolver.helpers.,\
  261. com.sun.org.apache.xml.internal.resolver.readers.,\
  262. com.sun.org.apache.xml.internal.security.,\
  263. com.sun.org.apache.xml.internal.serializer.utils.,\
  264. com.sun.org.apache.xml.internal.utils.,\
  265. com.sun.org.glassfish.,\
  266. com.oracle.xmlns.internal.,\
  267. com.oracle.webservices.internal.,\
  268. oracle.jrockit.jfr.,\
  269. org.jcp.xml.dsig.internal.,\
  270. jdk.internal.,\
  271. jdk.nashorn.internal.,\
  272. jdk.nashorn.tools.,\
  273. jdk.xml.internal.,\
  274. com.sun.activation.registries.,\
  275. com.sun.java.accessibility.,\
  276. com.sun.browser.,\
  277. com.sun.glass.,\
  278. com.sun.javafx.,\
  279. com.sun.media.,\
  280. com.sun.openpisces.,\
  281. com.sun.prism.,\
  282. com.sun.scenario.,\
  283. com.sun.t2k.,\
  284. com.sun.pisces.,\
  285. com.sun.webkit.,\
  286. jdk.management.resource.internal.
  287. #
  288. # Determines whether this properties file can be appended to
  289. # or overridden on the command line via -Djava.security.properties
  290. #
  291. security.overridePropertiesFile=true
  292. #
  293. # Determines the default key and trust manager factory algorithms for
  294. # the javax.net.ssl package.
  295. #
  296. ssl.KeyManagerFactory.algorithm=SunX509
  297. ssl.TrustManagerFactory.algorithm=PKIX
  298. #
  299. # The Java-level namelookup cache policy for successful lookups:
  300. #
  301. # any negative value: caching forever
  302. # any positive value: the number of seconds to cache an address for
  303. # zero: do not cache
  304. #
  305. # default value is forever (FOREVER). For security reasons, this
  306. # caching is made forever when a security manager is set. When a security
  307. # manager is not set, the default behavior in this implementation
  308. # is to cache for 30 seconds.
  309. #
  310. # NOTE: setting this to anything other than the default value can have
  311. # serious security implications. Do not set it unless
  312. # you are sure you are not exposed to DNS spoofing attack.
  313. #
  314. #networkaddress.cache.ttl=-1
  315. # The Java-level namelookup cache policy for failed lookups:
  316. #
  317. # any negative value: cache forever
  318. # any positive value: the number of seconds to cache negative lookup results
  319. # zero: do not cache
  320. #
  321. # In some Microsoft Windows networking environments that employ
  322. # the WINS name service in addition to DNS, name service lookups
  323. # that fail may take a noticeably long time to return (approx. 5 seconds).
  324. # For this reason the default caching policy is to maintain these
  325. # results for 10 seconds.
  326. #
  327. #
  328. networkaddress.cache.negative.ttl=10
  329. #
  330. # Properties to configure OCSP for certificate revocation checking
  331. #
  332. # Enable OCSP
  333. #
  334. # By default, OCSP is not used for certificate revocation checking.
  335. # This property enables the use of OCSP when set to the value "true".
  336. #
  337. # NOTE: SocketPermission is required to connect to an OCSP responder.
  338. #
  339. # Example,
  340. # ocsp.enable=true
  341. #
  342. # Location of the OCSP responder
  343. #
  344. # By default, the location of the OCSP responder is determined implicitly
  345. # from the certificate being validated. This property explicitly specifies
  346. # the location of the OCSP responder. The property is used when the
  347. # Authority Information Access extension (defined in RFC 3280) is absent
  348. # from the certificate or when it requires overriding.
  349. #
  350. # Example,
  351. # ocsp.responderURL=http://ocsp.example.net:80
  352. #
  353. # Subject name of the OCSP responder's certificate
  354. #
  355. # By default, the certificate of the OCSP responder is that of the issuer
  356. # of the certificate being validated. This property identifies the certificate
  357. # of the OCSP responder when the default does not apply. Its value is a string
  358. # distinguished name (defined in RFC 2253) which identifies a certificate in
  359. # the set of certificates supplied during cert path validation. In cases where
  360. # the subject name alone is not sufficient to uniquely identify the certificate
  361. # then both the "ocsp.responderCertIssuerName" and
  362. # "ocsp.responderCertSerialNumber" properties must be used instead. When this
  363. # property is set then those two properties are ignored.
  364. #
  365. # Example,
  366. # ocsp.responderCertSubjectName="CN=OCSP Responder, O=XYZ Corp"
  367. #
  368. # Issuer name of the OCSP responder's certificate
  369. #
  370. # By default, the certificate of the OCSP responder is that of the issuer
  371. # of the certificate being validated. This property identifies the certificate
  372. # of the OCSP responder when the default does not apply. Its value is a string
  373. # distinguished name (defined in RFC 2253) which identifies a certificate in
  374. # the set of certificates supplied during cert path validation. When this
  375. # property is set then the "ocsp.responderCertSerialNumber" property must also
  376. # be set. When the "ocsp.responderCertSubjectName" property is set then this
  377. # property is ignored.
  378. #
  379. # Example,
  380. # ocsp.responderCertIssuerName="CN=Enterprise CA, O=XYZ Corp"
  381. #
  382. # Serial number of the OCSP responder's certificate
  383. #
  384. # By default, the certificate of the OCSP responder is that of the issuer
  385. # of the certificate being validated. This property identifies the certificate
  386. # of the OCSP responder when the default does not apply. Its value is a string
  387. # of hexadecimal digits (colon or space separators may be present) which
  388. # identifies a certificate in the set of certificates supplied during cert path
  389. # validation. When this property is set then the "ocsp.responderCertIssuerName"
  390. # property must also be set. When the "ocsp.responderCertSubjectName" property
  391. # is set then this property is ignored.
  392. #
  393. # Example,
  394. # ocsp.responderCertSerialNumber=2A:FF:00
  395. #
  396. # Policy for failed Kerberos KDC lookups:
  397. #
  398. # When a KDC is unavailable (network error, service failure, etc), it is
  399. # put inside a blacklist and accessed less often for future requests. The
  400. # value (case-insensitive) for this policy can be:
  401. #
  402. # tryLast
  403. # KDCs in the blacklist are always tried after those not on the list.
  404. #
  405. # tryLess[:max_retries,timeout]
  406. # KDCs in the blacklist are still tried by their order in the configuration,
  407. # but with smaller max_retries and timeout values. max_retries and timeout
  408. # are optional numerical parameters (default 1 and 5000, which means once
  409. # and 5 seconds). Please notes that if any of the values defined here is
  410. # more than what is defined in krb5.conf, it will be ignored.
  411. #
  412. # Whenever a KDC is detected as available, it is removed from the blacklist.
  413. # The blacklist is reset when krb5.conf is reloaded. You can add
  414. # refreshKrb5Config=true to a JAAS configuration file so that krb5.conf is
  415. # reloaded whenever a JAAS authentication is attempted.
  416. #
  417. # Example,
  418. # krb5.kdc.bad.policy = tryLast
  419. # krb5.kdc.bad.policy = tryLess:2,2000
  420. krb5.kdc.bad.policy = tryLast
  421. # Algorithm restrictions for certification path (CertPath) processing
  422. #
  423. # In some environments, certain algorithms or key lengths may be undesirable
  424. # for certification path building and validation. For example, "MD2" is
  425. # generally no longer considered to be a secure hash algorithm. This section
  426. # describes the mechanism for disabling algorithms based on algorithm name
  427. # and/or key length. This includes algorithms used in certificates, as well
  428. # as revocation information such as CRLs and signed OCSP Responses.
  429. # The syntax of the disabled algorithm string is described as follows:
  430. # DisabledAlgorithms:
  431. # " DisabledAlgorithm { , DisabledAlgorithm } "
  432. #
  433. # DisabledAlgorithm:
  434. # AlgorithmName [Constraint] { '&' Constraint }
  435. #
  436. # AlgorithmName:
  437. # (see below)
  438. #
  439. # Constraint:
  440. # KeySizeConstraint | CAConstraint | DenyAfterConstraint |
  441. # UsageConstraint
  442. #
  443. # KeySizeConstraint:
  444. # keySize Operator KeyLength
  445. #
  446. # Operator:
  447. # <= | < | == | != | >= | >
  448. #
  449. # KeyLength:
  450. # Integer value of the algorithm's key length in bits
  451. #
  452. # CAConstraint:
  453. # jdkCA
  454. #
  455. # DenyAfterConstraint:
  456. # denyAfter YYYY-MM-DD
  457. #
  458. # UsageConstraint:
  459. # usage [TLSServer] [TLSClient] [SignedJAR]
  460. #
  461. # The "AlgorithmName" is the standard algorithm name of the disabled
  462. # algorithm. See "Java Cryptography Architecture Standard Algorithm Name
  463. # Documentation" for information about Standard Algorithm Names. Matching
  464. # is performed using a case-insensitive sub-element matching rule. (For
  465. # example, in "SHA1withECDSA" the sub-elements are "SHA1" for hashing and
  466. # "ECDSA" for signatures.) If the assertion "AlgorithmName" is a
  467. # sub-element of the certificate algorithm name, the algorithm will be
  468. # rejected during certification path building and validation. For example,
  469. # the assertion algorithm name "DSA" will disable all certificate algorithms
  470. # that rely on DSA, such as NONEwithDSA, SHA1withDSA. However, the assertion
  471. # will not disable algorithms related to "ECDSA".
  472. #
  473. # A "Constraint" defines restrictions on the keys and/or certificates for
  474. # a specified AlgorithmName:
  475. #
  476. # KeySizeConstraint:
  477. # keySize Operator KeyLength
  478. # The constraint requires a key of a valid size range if the
  479. # "AlgorithmName" is of a key algorithm. The "KeyLength" indicates
  480. # the key size specified in number of bits. For example,
  481. # "RSA keySize <= 1024" indicates that any RSA key with key size less
  482. # than or equal to 1024 bits should be disabled, and
  483. # "RSA keySize < 1024, RSA keySize > 2048" indicates that any RSA key
  484. # with key size less than 1024 or greater than 2048 should be disabled.
  485. # This constraint is only used on algorithms that have a key size.
  486. #
  487. # CAConstraint:
  488. # jdkCA
  489. # This constraint prohibits the specified algorithm only if the
  490. # algorithm is used in a certificate chain that terminates at a marked
  491. # trust anchor in the lib/security/cacerts keystore. If the jdkCA
  492. # constraint is not set, then all chains using the specified algorithm
  493. # are restricted. jdkCA may only be used once in a DisabledAlgorithm
  494. # expression.
  495. # Example: To apply this constraint to SHA-1 certificates, include
  496. # the following: "SHA1 jdkCA"
  497. #
  498. # DenyAfterConstraint:
  499. # denyAfter YYYY-MM-DD
  500. # This constraint prohibits a certificate with the specified algorithm
  501. # from being used after the date regardless of the certificate's
  502. # validity. JAR files that are signed and timestamped before the
  503. # constraint date with certificates containing the disabled algorithm
  504. # will not be restricted. The date is processed in the UTC timezone.
  505. # This constraint can only be used once in a DisabledAlgorithm
  506. # expression.
  507. # Example: To deny usage of RSA 2048 bit certificates after Feb 3 2020,
  508. # use the following: "RSA keySize == 2048 & denyAfter 2020-02-03"
  509. #
  510. # UsageConstraint:
  511. # usage [TLSServer] [TLSClient] [SignedJAR]
  512. # This constraint prohibits the specified algorithm for
  513. # a specified usage. This should be used when disabling an algorithm
  514. # for all usages is not practical. 'TLSServer' restricts the algorithm
  515. # in TLS server certificate chains when server authentication is
  516. # performed. 'TLSClient' restricts the algorithm in TLS client
  517. # certificate chains when client authentication is performed.
  518. # 'SignedJAR' constrains use of certificates in signed jar files.
  519. # The usage type follows the keyword and more than one usage type can
  520. # be specified with a whitespace delimiter.
  521. # Example: "SHA1 usage TLSServer TLSClient"
  522. #
  523. # When an algorithm must satisfy more than one constraint, it must be
  524. # delimited by an ampersand '&'. For example, to restrict certificates in a
  525. # chain that terminate at a distribution provided trust anchor and contain
  526. # RSA keys that are less than or equal to 1024 bits, add the following
  527. # constraint: "RSA keySize <= 1024 & jdkCA".
  528. #
  529. # All DisabledAlgorithms expressions are processed in the order defined in the
  530. # property. This requires lower keysize constraints to be specified
  531. # before larger keysize constraints of the same algorithm. For example:
  532. # "RSA keySize < 1024 & jdkCA, RSA keySize < 2048".
  533. #
  534. # Note: The algorithm restrictions do not apply to trust anchors or
  535. # self-signed certificates.
  536. #
  537. # Note: This property is currently used by Oracle's PKIX implementation. It
  538. # is not guaranteed to be examined and used by other implementations.
  539. #
  540. # Example:
  541. # jdk.certpath.disabledAlgorithms=MD2, DSA, RSA keySize < 2048
  542. #
  543. #
  544. jdk.certpath.disabledAlgorithms=MD2, MD5, SHA1 jdkCA & usage TLSServer, \
  545. RSA keySize < 1024, DSA keySize < 1024, EC keySize < 224
  546. #
  547. # Algorithm restrictions for signed JAR files
  548. #
  549. # In some environments, certain algorithms or key lengths may be undesirable
  550. # for signed JAR validation. For example, "MD2" is generally no longer
  551. # considered to be a secure hash algorithm. This section describes the
  552. # mechanism for disabling algorithms based on algorithm name and/or key length.
  553. # JARs signed with any of the disabled algorithms or key sizes will be treated
  554. # as unsigned.
  555. #
  556. # The syntax of the disabled algorithm string is described as follows:
  557. # DisabledAlgorithms:
  558. # " DisabledAlgorithm { , DisabledAlgorithm } "
  559. #
  560. # DisabledAlgorithm:
  561. # AlgorithmName [Constraint] { '&' Constraint }
  562. #
  563. # AlgorithmName:
  564. # (see below)
  565. #
  566. # Constraint:
  567. # KeySizeConstraint | DenyAfterConstraint
  568. #
  569. # KeySizeConstraint:
  570. # keySize Operator KeyLength
  571. #
  572. # DenyAfterConstraint:
  573. # denyAfter YYYY-MM-DD
  574. #
  575. # Operator:
  576. # <= | < | == | != | >= | >
  577. #
  578. # KeyLength:
  579. # Integer value of the algorithm's key length in bits
  580. #
  581. # Note: This property is currently used by the JDK Reference
  582. # implementation. It is not guaranteed to be examined and used by other
  583. # implementations.
  584. #
  585. # See "jdk.certpath.disabledAlgorithms" for syntax descriptions.
  586. #
  587. jdk.jar.disabledAlgorithms=MD2, MD5, RSA keySize < 1024, DSA keySize < 1024
  588. #
  589. # Algorithm restrictions for Secure Socket Layer/Transport Layer Security
  590. # (SSL/TLS) processing
  591. #
  592. # In some environments, certain algorithms or key lengths may be undesirable
  593. # when using SSL/TLS. This section describes the mechanism for disabling
  594. # algorithms during SSL/TLS security parameters negotiation, including
  595. # protocol version negotiation, cipher suites selection, peer authentication
  596. # and key exchange mechanisms.
  597. #
  598. # Disabled algorithms will not be negotiated for SSL/TLS connections, even
  599. # if they are enabled explicitly in an application.
  600. #
  601. # For PKI-based peer authentication and key exchange mechanisms, this list
  602. # of disabled algorithms will also be checked during certification path
  603. # building and validation, including algorithms used in certificates, as
  604. # well as revocation information such as CRLs and signed OCSP Responses.
  605. # This is in addition to the jdk.certpath.disabledAlgorithms property above.
  606. #
  607. # See the specification of "jdk.certpath.disabledAlgorithms" for the
  608. # syntax of the disabled algorithm string.
  609. #
  610. # Note: The algorithm restrictions do not apply to trust anchors or
  611. # self-signed certificates.
  612. #
  613. # Note: This property is currently used by the JDK Reference implementation.
  614. # It is not guaranteed to be examined and used by other implementations.
  615. #
  616. # Example:
  617. # jdk.tls.disabledAlgorithms=MD5, SSLv3, DSA, RSA keySize < 2048
  618. jdk.tls.disabledAlgorithms=SSLv3, RC4, MD5withRSA, DH keySize < 1024, \
  619. EC keySize < 224, DES40_CBC, RC4_40
  620. # Legacy algorithms for Secure Socket Layer/Transport Layer Security (SSL/TLS)
  621. # processing in JSSE implementation.
  622. #
  623. # In some environments, a certain algorithm may be undesirable but it
  624. # cannot be disabled because of its use in legacy applications. Legacy
  625. # algorithms may still be supported, but applications should not use them
  626. # as the security strength of legacy algorithms are usually not strong enough
  627. # in practice.
  628. #
  629. # During SSL/TLS security parameters negotiation, legacy algorithms will
  630. # not be negotiated unless there are no other candidates.
  631. #
  632. # The syntax of the legacy algorithms string is described as this Java
  633. # BNF-style:
  634. # LegacyAlgorithms:
  635. # " LegacyAlgorithm { , LegacyAlgorithm } "
  636. #
  637. # LegacyAlgorithm:
  638. # AlgorithmName (standard JSSE algorithm name)
  639. #
  640. # See the specification of security property "jdk.certpath.disabledAlgorithms"
  641. # for the syntax and description of the "AlgorithmName" notation.
  642. #
  643. # Per SSL/TLS specifications, cipher suites have the form:
  644. # SSL_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  645. # or
  646. # TLS_KeyExchangeAlg_WITH_CipherAlg_MacAlg
  647. #
  648. # For example, the cipher suite TLS_RSA_WITH_AES_128_CBC_SHA uses RSA as the
  649. # key exchange algorithm, AES_128_CBC (128 bits AES cipher algorithm in CBC
  650. # mode) as the cipher (encryption) algorithm, and SHA-1 as the message digest
  651. # algorithm for HMAC.
  652. #
  653. # The LegacyAlgorithm can be one of the following standard algorithm names:
  654. # 1. JSSE cipher suite name, e.g., TLS_RSA_WITH_AES_128_CBC_SHA
  655. # 2. JSSE key exchange algorithm name, e.g., RSA
  656. # 3. JSSE cipher (encryption) algorithm name, e.g., AES_128_CBC
  657. # 4. JSSE message digest algorithm name, e.g., SHA
  658. #
  659. # See SSL/TLS specifications and "Java Cryptography Architecture Standard
  660. # Algorithm Name Documentation" for information about the algorithm names.
  661. #
  662. # Note: This property is currently used by the JDK Reference implementation.
  663. # It is not guaranteed to be examined and used by other implementations.
  664. # There is no guarantee the property will continue to exist or be of the
  665. # same syntax in future releases.
  666. #
  667. # Example:
  668. # jdk.tls.legacyAlgorithms=DH_anon, DES_CBC, SSL_RSA_WITH_RC4_128_MD5
  669. #
  670. jdk.tls.legacyAlgorithms= \
  671. K_NULL, C_NULL, M_NULL, \
  672. DH_anon, ECDH_anon, \
  673. RC4_128, RC4_40, DES_CBC, DES40_CBC, \
  674. 3DES_EDE_CBC
  675. # The pre-defined default finite field Diffie-Hellman ephemeral (DHE)
  676. # parameters for Transport Layer Security (SSL/TLS/DTLS) processing.
  677. #
  678. # In traditional SSL/TLS/DTLS connections where finite field DHE parameters
  679. # negotiation mechanism is not used, the server offers the client group
  680. # parameters, base generator g and prime modulus p, for DHE key exchange.
  681. # It is recommended to use dynamic group parameters. This property defines
  682. # a mechanism that allows you to specify custom group parameters.
  683. #
  684. # The syntax of this property string is described as this Java BNF-style:
  685. # DefaultDHEParameters:
  686. # DefinedDHEParameters { , DefinedDHEParameters }
  687. #
  688. # DefinedDHEParameters:
  689. # "{" DHEPrimeModulus , DHEBaseGenerator "}"
  690. #
  691. # DHEPrimeModulus:
  692. # HexadecimalDigits
  693. #
  694. # DHEBaseGenerator:
  695. # HexadecimalDigits
  696. #
  697. # HexadecimalDigits:
  698. # HexadecimalDigit { HexadecimalDigit }
  699. #
  700. # HexadecimalDigit: one of
  701. # 0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f
  702. #
  703. # Whitespace characters are ignored.
  704. #
  705. # The "DefinedDHEParameters" defines the custom group parameters, prime
  706. # modulus p and base generator g, for a particular size of prime modulus p.
  707. # The "DHEPrimeModulus" defines the hexadecimal prime modulus p, and the
  708. # "DHEBaseGenerator" defines the hexadecimal base generator g of a group
  709. # parameter. It is recommended to use safe primes for the custom group
  710. # parameters.
  711. #
  712. # If this property is not defined or the value is empty, the underlying JSSE
  713. # provider's default group parameter is used for each connection.
  714. #
  715. # If the property value does not follow the grammar, or a particular group
  716. # parameter is not valid, the connection will fall back and use the
  717. # underlying JSSE provider's default group parameter.
  718. #
  719. # Note: This property is currently used by OpenJDK's JSSE implementation. It
  720. # is not guaranteed to be examined and used by other implementations.
  721. #
  722. # Example:
  723. # jdk.tls.server.defaultDHEParameters=
  724. # { \
  725. # FFFFFFFF FFFFFFFF C90FDAA2 2168C234 C4C6628B 80DC1CD1 \
  726. # 29024E08 8A67CC74 020BBEA6 3B139B22 514A0879 8E3404DD \
  727. # EF9519B3 CD3A431B 302B0A6D F25F1437 4FE1356D 6D51C245 \
  728. # E485B576 625E7EC6 F44C42E9 A637ED6B 0BFF5CB6 F406B7ED \
  729. # EE386BFB 5A899FA5 AE9F2411 7C4B1FE6 49286651 ECE65381 \
  730. # FFFFFFFF FFFFFFFF, 2}
  731. # Cryptographic Jurisdiction Policy defaults
  732. #
  733. # Import and export control rules on cryptographic software vary from
  734. # country to country. By default, the JDK provides two different sets of
  735. # cryptographic policy files:
  736. #
  737. # unlimited: These policy files contain no restrictions on cryptographic
  738. # strengths or algorithms.
  739. #
  740. # limited: These policy files contain more restricted cryptographic
  741. # strengths, and are still available if your country or
  742. # usage requires the traditional restrictive policy.
  743. #
  744. # The JDK JCE framework uses the unlimited policy files by default.
  745. # However the user may explicitly choose a set either by defining the
  746. # "crypto.policy" Security property or by installing valid JCE policy
  747. # jar files into the traditional JDK installation location. To better
  748. # support older JDK Update releases, the "crypto.policy" property is not
  749. # defined by default. See below for more information.
  750. #
  751. # The following logic determines which policy files are used:
  752. #
  753. # <java-home> refers to the directory where the JRE was
  754. # installed and may be determined using the "java.home"
  755. # System property.
  756. #
  757. # 1. If the Security property "crypto.policy" has been defined,
  758. # then the following mechanism is used:
  759. #
  760. # The policy files are stored as jar files in subdirectories of
  761. # <java-home>/lib/security/policy. Each directory contains a complete
  762. # set of policy files.
  763. #
  764. # The "crypto.policy" Security property controls the directory
  765. # selection, and thus the effective cryptographic policy.
  766. #
  767. # The default set of directories is:
  768. #
  769. # limited | unlimited
  770. #
  771. # 2. If the "crypto.policy" property is not set and the traditional
  772. # US_export_policy.jar and local_policy.jar files
  773. # (e.g. limited/unlimited) are found in the legacy
  774. # <java-home>/lib/security directory, then the rules embedded within
  775. # those jar files will be used. This helps preserve compatibility
  776. # for users upgrading from an older installation.
  777. #
  778. # 3. If the jar files are not present in the legacy location
  779. # and the "crypto.policy" Security property is not defined,
  780. # then the JDK will use the unlimited settings (equivalent to
  781. # crypto.policy=unlimited)
  782. #
  783. # Please see the JCA documentation for additional information on these
  784. # files and formats.
  785. #
  786. # YOU ARE ADVISED TO CONSULT YOUR EXPORT/IMPORT CONTROL COUNSEL OR ATTORNEY
  787. # TO DETERMINE THE EXACT REQUIREMENTS.
  788. #
  789. # Please note that the JCE for Java SE, including the JCE framework,
  790. # cryptographic policy files, and standard JCE providers provided with
  791. # the Java SE, have been reviewed and approved for export as mass market
  792. # encryption item by the US Bureau of Industry and Security.
  793. #
  794. # Note: This property is currently used by the JDK Reference implementation.
  795. # It is not guaranteed to be examined and used by other implementations.
  796. #
  797. #crypto.policy=unlimited
  798. #
  799. # The policy for the XML Signature secure validation mode. The mode is
  800. # enabled by setting the property "org.jcp.xml.dsig.secureValidation" to
  801. # true with the javax.xml.crypto.XMLCryptoContext.setProperty() method,
  802. # or by running the code with a SecurityManager.
  803. #
  804. # Policy:
  805. # Constraint {"," Constraint }
  806. # Constraint:
  807. # AlgConstraint | MaxTransformsConstraint | MaxReferencesConstraint |
  808. # ReferenceUriSchemeConstraint | KeySizeConstraint | OtherConstraint
  809. # AlgConstraint
  810. # "disallowAlg" Uri
  811. # MaxTransformsConstraint:
  812. # "maxTransforms" Integer
  813. # MaxReferencesConstraint:
  814. # "maxReferences" Integer
  815. # ReferenceUriSchemeConstraint:
  816. # "disallowReferenceUriSchemes" String { String }
  817. # KeySizeConstraint:
  818. # "minKeySize" KeyAlg Integer
  819. # OtherConstraint:
  820. # "noDuplicateIds" | "noRetrievalMethodLoops"
  821. #
  822. # For AlgConstraint, Uri is the algorithm URI String that is not allowed.
  823. # See the XML Signature Recommendation for more information on algorithm
  824. # URI Identifiers. For KeySizeConstraint, KeyAlg is the standard algorithm
  825. # name of the key type (ex: "RSA"). If the MaxTransformsConstraint,
  826. # MaxReferencesConstraint or KeySizeConstraint (for the same key type) is
  827. # specified more than once, only the last entry is enforced.
  828. #
  829. # Note: This property is currently used by the JDK Reference implementation. It
  830. # is not guaranteed to be examined and used by other implementations.
  831. #
  832. jdk.xml.dsig.secureValidationPolicy=\
  833. disallowAlg http://www.w3.org/TR/1999/REC-xslt-19991116,\
  834. disallowAlg http://www.w3.org/2001/04/xmldsig-more#rsa-md5,\
  835. disallowAlg http://www.w3.org/2001/04/xmldsig-more#hmac-md5,\
  836. disallowAlg http://www.w3.org/2001/04/xmldsig-more#md5,\
  837. maxTransforms 5,\
  838. maxReferences 30,\
  839. disallowReferenceUriSchemes file http https,\
  840. minKeySize RSA 1024,\
  841. minKeySize DSA 1024,\
  842. noDuplicateIds,\
  843. noRetrievalMethodLoops
  844. #
  845. # Serialization process-wide filter
  846. #
  847. # A filter, if configured, is used by java.io.ObjectInputStream during
  848. # deserialization to check the contents of the stream.
  849. # A filter is configured as a sequence of patterns, each pattern is either
  850. # matched against the name of a class in the stream or defines a limit.
  851. # Patterns are separated by ";" (semicolon).
  852. # Whitespace is significant and is considered part of the pattern.
  853. #
  854. # If a pattern includes a "=", it sets a limit.
  855. # If a limit appears more than once the last value is used.
  856. # Limits are checked before classes regardless of the order in the sequence of patterns.
  857. # If any of the limits are exceeded, the filter status is REJECTED.
  858. #
  859. # maxdepth=value - the maximum depth of a graph
  860. # maxrefs=value - the maximum number of internal references
  861. # maxbytes=value - the maximum number of bytes in the input stream
  862. # maxarray=value - the maximum array length allowed
  863. #
  864. # Other patterns, from left to right, match the class or package name as
  865. # returned from Class.getName.
  866. # If the class is an array type, the class or package to be matched is the element type.
  867. # Arrays of any number of dimensions are treated the same as the element type.
  868. # For example, a pattern of "!example.Foo", rejects creation of any instance or
  869. # array of example.Foo.
  870. #
  871. # If the pattern starts with "!", the status is REJECTED if the remaining pattern
  872. # is matched; otherwise the status is ALLOWED if the pattern matches.
  873. # If the pattern ends with ".**" it matches any class in the package and all subpackages.
  874. # If the pattern ends with ".*" it matches any class in the package.
  875. # If the pattern ends with "*", it matches any class with the pattern as a prefix.
  876. # If the pattern is equal to the class name, it matches.
  877. # Otherwise, the status is UNDECIDED.
  878. #
  879. #jdk.serialFilter=pattern;pattern
  880. #
  881. # RMI Registry Serial Filter
  882. #
  883. # The filter pattern uses the same format as jdk.serialFilter.
  884. # This filter can override the builtin filter if additional types need to be
  885. # allowed or rejected from the RMI Registry or to decrease limits but not
  886. # to increase limits.
  887. # If the limits (maxdepth, maxrefs, or maxbytes) are exceeded, the object is rejected.
  888. #
  889. # Each non-array type is allowed or rejected if it matches one of the patterns,
  890. # evaluated from left to right, and is otherwise allowed. Arrays of any
  891. # component type, including subarrays and arrays of primitives, are allowed.
  892. #
  893. # Array construction of any component type, including subarrays and arrays of
  894. # primitives, are allowed unless the length is greater than the maxarray limit.
  895. # The filter is applied to each array element.
  896. #
  897. # The built-in filter allows subclasses of allowed classes and
  898. # can approximately be represented as the pattern:
  899. #
  900. #sun.rmi.registry.registryFilter=\
  901. # maxarray=1000000;\
  902. # maxdepth=20;\
  903. # java.lang.String;\
  904. # java.lang.Number;\
  905. # java.lang.reflect.Proxy;\
  906. # java.rmi.Remote;\
  907. # sun.rmi.server.UnicastRef;\
  908. # sun.rmi.server.RMIClientSocketFactory;\
  909. # sun.rmi.server.RMIServerSocketFactory;\
  910. # java.rmi.activation.ActivationID;\
  911. # java.rmi.server.UID
  912. #
  913. # RMI Distributed Garbage Collector (DGC) Serial Filter
  914. #
  915. # The filter pattern uses the same format as jdk.serialFilter.
  916. # This filter can override the builtin filter if additional types need to be
  917. # allowed or rejected from the RMI DGC.
  918. #
  919. # The builtin DGC filter can approximately be represented as the filter pattern:
  920. #
  921. #sun.rmi.transport.dgcFilter=\
  922. # java.rmi.server.ObjID;\
  923. # java.rmi.server.UID;\
  924. # java.rmi.dgc.VMID;\
  925. # java.rmi.dgc.Lease;\
  926. # maxdepth=5;maxarray=10000
  927. # CORBA ORBIorTypeCheckRegistryFilter
  928. # Type check enhancement for ORB::string_to_object processing
  929. #
  930. # An IOR type check filter, if configured, is used by an ORB during
  931. # an ORB::string_to_object invocation to check the veracity of the type encoded
  932. # in the ior string.
  933. #
  934. # The filter pattern consists of a semi-colon separated list of class names.
  935. # The configured list contains the binary class names of the IDL interface types
  936. # corresponding to the IDL stub class to be instantiated.
  937. # As such, a filter specifies a list of IDL stub classes that will be
  938. # allowed by an ORB when an ORB::string_to_object is invoked.
  939. # It is used to specify a white list configuration of acceptable
  940. # IDL stub types which may be contained in a stringified IOR
  941. # parameter passed as input to an ORB::string_to_object method.
  942. #
  943. # Note: This property is currently used by the JDK Reference implementation.
  944. # It is not guaranteed to be examined and used by other implementations.
  945. #
  946. #com.sun.CORBA.ORBIorTypeCheckRegistryFilter=binary_class_name;binary_class_name