[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-698044-105":59,"doc-detail-698044-en":130,"doc-similar-698044":156},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","parsing-large-crls-in-java","Parsing Large CRLs in Java","","The article explains how to parse large X.509 Certificate Revocation Lists (CRLs) in Java, focusing on cases where CRLs can reach several megabytes and contain hundreds of thousands of entries. It compares the standard CertificateFactory approach, which stores and expands CRL data in memory, to the streaming CRL classes in IAIK-JCE. By parsing entries sequentially and releasing prior data, the streaming approach avoids out-of-memory issues and provides predictable memory usage, while increasing processing time roughly linearly with CRL size.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/parsing-large-crls-in-java/698044/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/parsing-large-crls-in-java/698044.png","ImageObject",300,407,{"name":92,"@type":93},"Fans","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-17","2026-11-12",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Why do large X.509 CRLs cause problems with Java CertificateFactory parsing?","Question",{"text":112,"@type":113},"CertificateFactory-based parsing requires buffering the CRL content in memory. The resulting parsed CRL object can consume many times the original CRL size, leading to out-of-memory errors for multi-megabyte CRLs.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do the streaming CRL classes in IAIK-JCE reduce memory consumption?",{"text":117,"@type":113},"The IAIK-JCE streaming classes process CRL data as a stream and let the application specify which certificates to consider. They browse the stream without buffering the whole CRL, release memory for each entry as they move forward, and keep peak memory usage low.",{"name":119,"@type":110,"acceptedAnswer":120},"Does streaming CRL parsing only improve memory, or does it also affect performance?",{"text":121,"@type":113},"Memory consumption becomes largely independent of CRL size, typically staying at a few kilobytes during parsing. Processing time increases roughly linearly with the number of CRL entries because entries are handled sequentially.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},698044,1794447409,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":81,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":39,"preview_page_count":81,"preview_urls":143},5909892330395,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Parsing Large CRLs in Java  \n[Karl.Scheibelhofer@iaik.tugraz.at](Karl.Scheibelhofer@iaik.tugraz.at)  \nIAIK, Graz University of Technology  \nJune 2006  \nIntroduction  \nThis article shows how to use IAIK-JCE to parse large X.509 CRLs, which can grow up to several megabytes.  \nCertificate validation usually requires revocation checking. Even though OCSP is therevocation checking mechanism of the future, the most widespread one is still based on certificate revocation lists, short CRLs. On the first look, these lists are simple. They area signed sequence of the serial numbers of all revoked certificates of a CRL. For small and medium CAs, the number of revoked certificates is limited and the size of CRLs are usually some kilobytes. For large CAs that issue millions of certificates, these sizes can grow up to several megabytes easily. For example, the CRL ofthe VeriSign Commercial Software Publishers CA has a size of 777 kB as of this writing and a CRL of the e-mail CAs ofthe Department of Defense has 11.6 MB.  \nThe Approach with a CertificiateFactory  \nLarge CRLs require advanced programming techniques. The [java.security.cert.CertificateFactory](java.security.cert.CertificateFactory) provides a method for parsing CRLs from a stream, but the whole content of it is stored in memory. This entails a significant memory consumption of the application. The parsed CRL object usually requires a multiple of the memory of the underlying CRL. Typically, a Java VM with a maximum heap size of 64 MB runs out of memory, if the application tries to parse a CRL with a size of 4 MB. The parsed CRL object will consume up to 20 times more memory than the actual CRL. This number depends on the actual CertificateFactory implementation. Here is an example, which uses a CertificateFactory to parse a CRL and to do therevocation checking.  \nCertificateFactory certFactory =  \nCertificateFactory.getInstance(\"X .509\"); URL crlURL = new URL(crlURLString); InputStream crlStream = crlURL .openStream();  \nX509CRL crl = (X509CRL) certFactory .generateCRL(crlStream);  \ncrl .verify(issuerCertificate .getPublicKey()); boolean revoked = crl .isRevoked(certificate);  \nYou may try to run this code with SUN Java 5 and the default heap size of 64 MB. Parsing the CRL of VeriSign Commercial Software Publishers CA ([http://crl.verisign.com/Class3SoftwarePublishers.crl](http://crl.verisign.com/Class3SoftwarePublishers.crl)) will usually succeed. At the time of this writing, it has a size of 777 kB and contains 22691 entries. On the heap, the parsed  \nCRL object takes about 25 MB. If we try to parse a CRL with 4 MB, like the CRL ofthe Department of Defense CA-4 with 188387 entries ([ldap://ds-4.c3pki.den.disa.mil/cn%3dDOD%20CLASS%203%20CA-4%2cou%3dPKI%](ldap://ds-4.c3pki.den.disa.mil/cn%3dDOD%20CLASS%203%20CA-4%2cou%3dPKI%)[ ](ldap://ds-4.c3pki.den.disa.mil/cn%3dDOD%20CLASS%203%20CA-4%2cou%3dPKI%)2cou%3dDoD%2co%3dU. S.%20Government%2cc%3dUS?certificaterevocationlist;binary), a Java VM with a 64 MB heap runs out of memory.  \nThe Streaming CRL Classes of IAIK-JCE  \nTo parse a CRL of this size, we can use the streaming CRL classes of the IAIK-JCE toolkit (version 3.12 or newer) . These classes are in the iaik .x509 .stream package. They support stream processing a CRL. This means that the application specifies in advance, in which certificates it is interested in, and the CRL object will browse through the data stream without buffering the CRL in memory. This reduces the memory consumption significantly and supports parsing CRLs of virtually any size.  \nHere is a piece of code that uses the mentioned CRL streaming classes.  \nX509Certificate[] consideredCertificates = new X509Certificate[] {certificate};  \nRevokedCertificatesCRLListener listener = new RevokedCertificatesCRLListener(consideredCertificates,  \nissuerCertificate .getPublicKey());  \nX509CRLStream crlStreamHandler = new X509CRLStream(listener);  \nURL crlURL = new URL(crlURLString);  \nInputStream crlStream = crlURL .open","cbCaig1TlthI3P24","https://ap.wps.com/l/cbCaig1TlthI3P24","pdf",18410,"English","# Introduction\n# The Approach with a CertificiateFactory\n# The Streaming CRL Classes of IAIK-JCE\n# Summary\n# References","[{\"question\":\"Why do large X.509 CRLs cause problems with Java CertificateFactory parsing?\",\"answer\":\"CertificateFactory-based parsing requires buffering the CRL content in memory. The resulting parsed CRL object can consume many times the original CRL size, leading to out-of-memory errors for multi-megabyte CRLs.\"},{\"question\":\"How do the streaming CRL classes in IAIK-JCE reduce memory consumption?\",\"answer\":\"The IAIK-JCE streaming classes process CRL data as a stream and let the application specify which certificates to consider. They browse the stream without buffering the whole CRL, release memory for each entry as they move forward, and keep peak memory usage low.\"},{\"question\":\"Does streaming CRL parsing only improve memory, or does it also affect performance?\",\"answer\":\"Memory consumption becomes largely independent of CRL size, typically staying at a few kilobytes during parsing. Processing time increases roughly linearly with the number of CRL entries because entries are handled sequentially.\"}]","Parsing Large CRLs in Java | PDF",[144,148,152],{"page_no":8,"url":145,"width":146,"height":147},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/01ea016a4e6f952b0aec48ca7ee4cbb3.webp",983,1272,{"page_no":14,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/4fe789df36533f4c8167fbfc65b7b8e2.webp",982,1270,{"page_no":81,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/0c366c1e661c43f970a51a5d9c78ab61.webp",981,1269,{"list":157,"token":66},[158,165,171,177,184,191,198,205,212,219],{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":163,"category_name":30,"create_tm":164},160305,"Certificate Revocation List Expired - how to manage CRL cache and verification","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229871232778/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=OmSq%2By7btOHvnMLvmi%2BCnEtrPQ0%3D","certificate-revocation-list-expired-how-to-manage-crl-cache-and-verification",23,1788053696,{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":46,"category_name":30,"create_tm":170},160302,"RFC 5280 - Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229871981568/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=z9rkQ041OJ5lX1XUK2ndW5fbnX8%3D","rfc-5280-internet-x509-public-key-infrastructure-certificate-and-certificate-revocation-list-crl-profile",1788053678,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":14,"category_name":30,"create_tm":176},698042,"Optimized Certificate Revocation List Distribution for Secure V2X Communications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230010169510/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=4Va1ZnwN6rwgAk41gnif9lgop94%3D","optimized-certificate-revocation-list-distribution-for-secure-v2x-communications",1794447404,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":30,"create_tm":183},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=J0u99KJc6hyhb7hcht5XUBSCoUs%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",914,1785472614,{"doc_id":185,"doc_title":186,"file_type":137,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":30,"create_tm":190},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=QWHdn%2BhGrQi7S67aYMNcXOyi9uQ%3D","xnx-universal-transmitter-installation-manual",855,1776135954,{"doc_id":192,"doc_title":193,"file_type":137,"home_preview_img_url":194,"slug":195,"view_count":196,"category_name":30,"create_tm":197},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=8YBmJT%2BuVQV0qD9QtVw0VxCVkxc%3D","the-candlestick-trading-bible-trading-guide",804,1789767270,{"doc_id":199,"doc_title":200,"file_type":137,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":30,"create_tm":204},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=wo8okfH0vvCbiW5qtkjE409eUo4%3D","free-fire-proxy-server",565,1776135932,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":30,"create_tm":211},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=ApQJQL%2FLTnI4vrqslOl9FoCuq1c%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",498,1786012506,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":30,"create_tm":218},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=oZN2%2FEYv66hSaRwawe2ZTmrAERg%3D","tiktok-content-tricks-from-0-to-fyp",491,1776338393,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":224,"category_name":30,"create_tm":225},387603,"Building Applications with AI Agents - Multiagent Systems - Designing and Implementing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229916172328/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796112839&Signature=Ib1Bb6%2BC8SWHZ8hzewXKv360hQg%3D","building-applications-with-ai-agents-multiagent-systems-designing-and-implementing",454,1790287169]