EasyRSA-3.2.2/000775 000765 000024 00000000000 14747420057 013435 5ustar00ecriststaff000000 000000 EasyRSA-3.2.2/openssl-easyrsa.cnf000664 000765 000024 00000012031 14747420057 017252 0ustar00ecriststaff000000 000000 # For use with Easy-RSA 3.0+ and OpenSSL or LibreSSL #################################################################### [ ca ] default_ca = CA_default # The default ca section #################################################################### [ CA_default ] dir = $ENV::EASYRSA_PKI # Where everything is kept certs = $dir # Where the issued certs are kept crl_dir = $dir # Where the issued crl are kept database = $dir/index.txt # database index file. new_certs_dir = $dir/certs_by_serial # default place for new certs. certificate = $dir/ca.crt # The CA certificate serial = $dir/serial # The current serial number crl = $dir/crl.pem # The current CRL private_key = $dir/private/ca.key # The private key RANDFILE = $dir/.rand # private random number file x509_extensions = basic_exts # The extensions to add to the cert # A placeholder to handle the --copy-ext feature: #%COPY_EXTS% # Do NOT remove or change this line as --copy-ext support requires it # This allows a V2 CRL. Ancient browsers don't like it, but anything Easy-RSA # is designed for will. In return, we get the Issuer attached to CRLs. crl_extensions = crl_ext default_days = $ENV::EASYRSA_CERT_EXPIRE # how long to certify for default_crl_days = $ENV::EASYRSA_CRL_DAYS # how long before next CRL default_md = $ENV::EASYRSA_DIGEST # use public key default MD # Note: preserve=no|yes, does nothing for EasyRSA. # Use sign-req command option 'preserve' instead. preserve = no # keep passed DN ordering # This allows to renew certificates which have not been revoked unique_subject = no # A few different ways of specifying how similar the request should look # For type CA, the listed attributes must be the same, and the optional # and supplied fields are just that :-) policy = policy_anything # For the 'anything' policy, which defines allowed DN fields [ policy_anything ] countryName = optional stateOrProvinceName = optional localityName = optional organizationName = optional organizationalUnitName = optional commonName = supplied emailAddress = optional serialNumber = optional #################################################################### # Easy-RSA request handling # We key off $DN_MODE to determine how to format the DN [ req ] default_bits = $ENV::EASYRSA_KEY_SIZE default_keyfile = privkey.pem default_md = $ENV::EASYRSA_DIGEST distinguished_name = $ENV::EASYRSA_DN x509_extensions = easyrsa_ca # The extensions to add to the self signed cert # A placeholder to handle the $EXTRA_EXTS feature: #%EXTRA_EXTS% # Do NOT remove or change this line as $EXTRA_EXTS support requires it #################################################################### # Easy-RSA DN (Subject) handling # Easy-RSA DN for cn_only support: [ cn_only ] commonName = Common Name (eg: your user, host, or server name) commonName_max = 64 commonName_default = $ENV::EASYRSA_REQ_CN # Easy-RSA DN for org support: [ org ] countryName = Country Name (2 letter code) countryName_default = $ENV::EASYRSA_REQ_COUNTRY countryName_min = 2 countryName_max = 2 stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = $ENV::EASYRSA_REQ_PROVINCE localityName = Locality Name (eg, city) localityName_default = $ENV::EASYRSA_REQ_CITY 0.organizationName = Organization Name (eg, company) 0.organizationName_default = $ENV::EASYRSA_REQ_ORG organizationalUnitName = Organizational Unit Name (eg, section) organizationalUnitName_default = $ENV::EASYRSA_REQ_OU commonName = Common Name (eg: your user, host, or server name) commonName_max = 64 commonName_default = $ENV::EASYRSA_REQ_CN emailAddress = Email Address emailAddress_default = $ENV::EASYRSA_REQ_EMAIL emailAddress_max = 64 serialNumber = Serial-number (eg, device serial-number) serialNumber_default = $ENV::EASYRSA_REQ_SERIAL #################################################################### # Easy-RSA cert extension handling # This section is effectively unused as the main script sets extensions # dynamically. This core section is left to support the odd usecase where # a user calls openssl directly. [ basic_exts ] basicConstraints = CA:FALSE subjectKeyIdentifier = hash authorityKeyIdentifier = keyid,issuer:always # The Easy-RSA CA extensions [ easyrsa_ca ] # PKIX recommendations: subjectKeyIdentifier=hash authorityKeyIdentifier=keyid:always,issuer:always # This could be marked critical, but it's nice to support reading by any # broken clients who attempt to do so. basicConstraints = CA:true # Limit key usage to CA tasks. If you really want to use the generated pair as # a self-signed cert, comment this out. keyUsage = cRLSign, keyCertSign # nsCertType omitted by default. Let's try to let the deprecated stuff die. # nsCertType = sslCA # A placeholder to handle the $X509_TYPES and CA extra extensions $EXTRA_EXTS: #%CA_X509_TYPES_EXTRA_EXTS% # Do NOT remove or change this line as $X509_TYPES and EXTRA_EXTS demands it # CRL extensions. [ crl_ext ] # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL. # issuerAltName=issuer:copy authorityKeyIdentifier=keyid:always,issuer:always EasyRSA-3.2.2/._gpl-2.0.txt000664 000765 000024 00000000340 14747420057 015467 0ustar00ecriststaff000000 000000 Mac OS X  2®àATTRà´,´,.com.apple.metadata:kMDItemTextContentLanguagebplist00Rfr EasyRSA-3.2.2/PaxHeader/gpl-2.0.txt000664 000765 000024 00000000411 14747420057 017222 xustar00ecriststaff000000 000000 30 mtime=1738416175.431271096 127 LIBARCHIVE.xattr.com.apple.metadata:kMDItemTextContentLanguage=YnBsaXN0MDBSZnIIAAAAAAAAAQEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAs 108 SCHILY.xattr.com.apple.metadata:kMDItemTextContentLanguage=bplist00Rfr EasyRSA-3.2.2/gpl-2.0.txt000664 000765 000024 00000043254 14747420057 015265 0ustar00ecriststaff000000 000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. EasyRSA-3.2.2/ChangeLog000664 000765 000024 00000046615 14747420057 015223 0ustar00ecriststaff000000 000000 Easy-RSA 3 ChangeLog 3.2.2 (2025-02-01) * Fold easyrsa-tools.lib into easyrsa (56cfa0c) (#1288) * Revert da3c249: Do not remove index.txt.attr (a236b97) (#1287) * Windows: Remove mktemp binary and text files (135f642) (#1285) * op-test.sh: Disable download ossl3 and shellcheck binaries (473c43b) (#1284) * Forbid self-signed certificate from being expired/renewed/revoked (ab45ae7) (#1274) * Rename global option --ssl-conf (DEPRECATED) to --ssl-cnf (c788423) (#1270) * bugfix: Save and Restore $EASYRSA_SSL_CONF for compound commands (7cdb14d) (#1270) * bugfix: Always use locate_support_files() after secure_session() (d530bc3) (#1270) * bugfix: easyrsa-tools.lib: renew, write full metadata to temp-file (b47d2af) (#1267) * Introduce new command 'revoke-issued' (38bf2d8) (#1266) Commands 'revoke' and 'revoke-issued' are identical. Command 'revoke' can ONLY be used in batch mode. * vars.example: Remove $EASYRSA_PKI (8ee8dcf) (#1262) There is no effect on existing 'vars' files. * easyrsa-tools.lib: Move to 'easyrsa3' directory (d30b688) (#1259) This now includes 'easyrsa-tools.lib' in the distribution tarballs. * Upgrade easyrsa-tools.lib to version 322 - As of command 'renew-ca' * easyrsa-tools.lib: Introduce new command 'renew-ca' (ba32b0d) (#1255) * easyrsa-tools.lib: show-expire, allow --days to be zero (a1033a5) (#1254) * Command 'help': Ignore EASYRSA_SILENT (8804d6b) (#1249) * bugfix: easyrsa-tools.lib: renew SAN, remove excess word 'Address' (af17492) (#1251) * New global variable 'EASYRSA_DISABLE_INLINE' (ad257ab) (#1245) * bugfix: revoke, renew: Remove pki/inline/private/$file.inline (febef85) (#1244) Initial bug report #1242 (Minor) Stop removing old credentials file pki/$file.creds (a871e9c) * Add LibreSSL version 4 to supported SSL Libraries (7df616b) (#1240) * sign-req: Allow custom X509 Types (2ee08cc) (#1238) * Remove redundant file index.txt.attr (da3c249) (#1233) 3.2.1 (2024-09-13) * inline: Add decimal value for cert. serial (Linux Only) (b33038e) (#1222) * Always exit with error for unknown command options (Except nopass) (#1221) (build-ca: b2f7912); (gen-req: 07f21d3); (build_full(): 0ff7f4c); (export_pkcs(): 2c51288); (set-pass: 1266d4e) * Integrate Easy-RSA TLS-Key for use with 'init-pki soft' (03d9dc2) (#1220) Note: Inline files that contain private key data are now created in sub-dir 'pki/inline/private'. * easyrsa-tools.lib, show-expire: Add CA certificate to report (a36cd54) (#1215) * inline: OpenVPN TLS Keys inlining for TLS-AUTH, TLS-CRYPT-V1 (6e9e4a2) (#1185) Note: Command inline only writes directly to inline file not stdout. * easyrsa-tools.lib: OpenVPN TLS Key gen. TLS-AUTH, TLS-CRYPT-V1 (cf0da16) (#1185) * easyrsa-tools.lib: expire_status_v2() (show-expire version 2) (1e43bf5) (#1214) * sign-req: Require 128bit serial number (806ee19) (#1213) * Move command 'verify-cert' to Tools-lib; drop 'verify' shortcut (ddbf304) (#1209) * Windows secure_session(): Ensure $secured_session dir is created (d99b242) (#1203) * Switch to '-f' for file existence (6ab98c9..a02f545) (#1201) * inline: Move auto-inline from build_full() to sign_req() (823f70f) (#1201) * gen-crl: Create additional CRL in DER format (69df0d8) (#1198) * self-sign: Allow Edwards Curve based keys (81b749b) (#1197) * Re-enable command 'renew' (version 2): Requires EasyRSA Tools (30fe311) (#1195) * bug-fix: revoke: Pass the correct certificate location (24d5514) * vars.example: Add flags for auto-SAN and X509 critical attribute (a41dfcc) * Global option --eku-crit: Mark X509 extendedKeyUsage as critical (ca09211) * sign-req: Add critical and pathlen details to confirmation (deae705) (#1182) * export-p12: Automatically generate inline file (9d90370) (#1181) * Introduce global option --auto-san, use commonName as SAN (5c36d44) (#1180) * Introduce global option --san-crit, mark SAN critical (dd69f50) (#1179) * Introduce new global options: --ku-crit and --bc-crit (b79abee) (#1176) * gen-req: Always check for existing request file (7eab98e) (#1177) * revoke/revoke-expired/-renewed: Keep duplicate certificate (3da7f66) (#1177) * revoke-expired/-renewed: Keep req/key files for resigning (4537ae7) (#1177) * revoke: Add abbreviations for optional 'reason' (a88ccc7) (#1173) * build-ca: Allow use of --req-cn without batch mode (b77a0fb) (#1170) * gen-req: Re-enable use of --req-cn (5cf8c46) (#1170) * write: Change syntax, target as file, not directory (722ce54) (#1165) 3.2.0 (2024-05-18) * Revert ca76697: Restore escape_hazard() (b1e9d7a) (#1137) * New X509 Type: 'selfsign' Internal only (999533e) (#1135) * New commands: self-sign-server and self-sign-client (9f8a1d1) (#1127) * build-ca: Command 'req', remove SSL option '-keyout' (4e02c8a) (#1123) * Remove escape_hazard(), obsolete (ca76697) * Remove command and function display_cn(), unused (be8f400) (#1114) * Introduce Options to edit Request Subject during command 'sign-req' Global Option: --new-subject -- Command 'sign-req' option: 'newsubj' First proposed in: (#439) -- Completed: (83b81c7) (#1111) * docs: Update EasyRSA-Renew-and-Revoke.md (f6c2bf5) (#1109) * Remove all 'renew' code; replaced by 'expire' code (9d94207) (#1109) * Introduce commands: 'expire' and 'revoke-expired' (a1890fa) (#1109) * Keep request files [CSR] when revoking certificates (6d6e8d8) (#1109) * Restrict use of --req-cn to build-ca (0a46164) (#1098) * Remove command 'display-san' (Code removed in 5a06f94) (50e6002) (#1096) * help: Add 'copyext'; How to use --copy-ext and --san (5a06f94) (#1096) * Allow --san to be used multiple times (5a06f94) (#1096) * Remove default server subject alternative name (0b85a5d) (#576) * Move Status Reports to 'easyrsa-tools.lib' (214b909) (#1080) * export-p12, OpenSSL v1.x: Upgrade PBE and MAC options (60a508a) (#1084 - Based on #1081) * Windows: Introduce 'Non-Admin' mode (c2823c4) (#1073) * LibreSSL: Add fix for missing 'x509' option '-ext' (96dd959) (#1068) * Variable heredoc expansion for SSL/Safe Config file (9c5d423) (#1064) Branch-merge: v3.2.0-beta2 (#1055) 2024/01/13 Commit: d51d79b * Always use here-doc version of openssl-easyrsa.cnf (2a8c0de) Only use here-doc if the current version is recognised by sha256 hash. The current file is NEVER deleted (60216d5). Partially revert: 2a8c0de * export-p12: New command option 'legacy'. OpenSSL V3 Only (f8514de) Fallback to encryption algorithm RC2_CBC or 3DES_CBC * export-p12: Always set 'friendlyName' to file-name-base (da9e594) * Update OpenSSL to 3.2.0 (03e4829) Branch-merge: v3.2.0-beta1 (#1046) 2023/12/15 Commit: 7120876 * Important note: As of Easy-RSA version 3.2.0-beta1, the configuration files `vars.example`, `openssl-easyrsa.cnf` and all files in `x509-types` directory are no longer required. Package maintainers can omit these files in the future. All files are created as required and deleted upon command completion. `vars.example` is created during `init-pki` and placed in the fresh PKI. These files will be retained for downstream packaging compatibility. * Rename X509-type file `code-signing` to `codeSigning` (1c6b31a) The original file will be retained as `code-signing`, however, the automatic X509-types creation will name the file `codeSigning`. This effectively means that both are valid X509-types, until `code-signing` is dropped. * init-pki: Always write vars.example file to fresh PKI (66a8f3e) * New command 'write': Write 'legacy' files to stdout or files (c814e0a) * Remove command 'make-safe-ssl': Replaced by command 'write safe-cnf' (c814e0a) * New Command 'rand': Expose easyrsa_random() to the command line (6131cbf) * Remove function 'set_pass_legacy()' (7470c2a) * Remove command 'rewind-renew' (72b4079) * Remove command 'rebuild' (d6953cc) * Remove command 'upgrade' (6a88edd) Branch-merge: v3.2.0-alpha2 (#1043) 2023/12/7 Commit: ed0dc46 * Remove EASYRSA_NO_VARS; Allow graceful use without a vars file (3c0ca17) Branch-merge: v3.2.0-alpha1 (#1041) 2023/12/2 Commit: 42c2e95 * New diagnostic command 'display-cn' (#1040) * Expand renewable certificate types to include code-signing (#1039) 3.1.7 (2023-10-13) * Rewrite vars-auto-detect, adhere to EasyRSA-Advanced.md (#1029) Under the hood, this is a considerable change but there are no user noticeable differences. With the exception of: Caveat: The default '$PWD/pki/vars' file is forbidden to change either EASYRSA or EASYRSA_PKI, which are both implied by default. * EasyRSA-Advanced.md: Correct vars-auto-detect hierarchy (#1029) Commit: ecd65065e3303da78811278a154ef7a969c2777b EASYRSA/vars is moved to a higher priority than a default PKI. vars-auto-detect no longer searches 'easyrsa' program directory. * gen-crl: preserve existing crl.pem ownership+mode (#1020) * New command: make-vars - Print vars.example (here-doc) to stdout (#1024) * show-expire: Calculate cert. expire seconds from DB date (#1023) * Update OpenSSL to 3.1.2 3.1.6 (2023-07-18) * New commands: 'inline' and 'x509-eku' (#993) inline: Build an inline file for a commonName x509-eku: Extract X509v3 extended key usage from a certificate * Expose serial-check, display-dn, display-san and default-san to command line. (#980) (Debugging functions, which remain undocumented) * Expand default status to include vars-file and CA status (#973) * sign-req: Allow the CSR DN-field order to be preserved (#970) 3.1.5 (2023-06-10) * Build Update: script now supports signing and verifying * Automate support-file creation (Free packaging) (#964) * build-ca: New command option 'raw-ca', abbreviation: 'raw' (#963) This 'raw' method, is the most reliable way to build a CA, with a password, without writing the CA password to a temp-file. This option completely replaces both methods below: * build-ca: New option --ca-via-stdin, use SSL -pass* argument 'stdin' (#959) Option '--ca-via-stdin' offers no more security than standard method. Easy-RSA version 3.1.4 ONLY. * build-ca: Replace password temp-files with file-descriptors (#955) Using file-descriptors does not work in Windows. Easy-RSA version 3.1.3 ONLY. 3.1.4 (2023-05-23) * build-ca: New option --ca-via-stdin, use SSL -pass* argument 'stdin' (#959) * build-ca: Revert manual CA password method to temp-files (#959) Supersedes #955 Release v3.1.3 was fatally flawed, it would fail to build a CA under Windows. Release v3.1.4 is specifically a bugfix ONLY, to resolve the Windows problem. See the following commits for further details: 5d7ad1306d5ebf1588aef77eb3445e70cf5b4ebc build-ca: Revert manual CA password method to temp-files c11135d19b2e7e7385d28abb1132978c849dfa74 build-ca: Use OpenSSL password I/O argument 'stdin' 27870d695a324e278854146afdac5d6bdade9bba build-ca: Replace password temp-file method with file-descriptors Superseded by 5d7ad13 above. 3.1.3 (2023-05-19) * build-ca: Replace password temp-files with file-descriptors (#955) Superseded by #959 * Replace --fix-offset with --startdate, --enddate (#918) * Introduce option -S|--silent-ssl: Silence SSL output (#913) * Only create a random serial number file when expected (#896) * Always verify SSL lib, for all commands (#877) * Option --fix-offset: Adjust off-by-one day (#847) Superseded (#918) * Update OpenSSL to v3.0.8 3.1.2 (2023-01-13) * build-full: Always enable inline file creation (#834) * Make default Edwards curve ED25519 (#828) * Allow --fix-offset to create post-dated certificates (#804) Superseded (#918) * Introduce command 'set-pass' (#756) * Introduce global option '--nopass|--no-pass' (#752) * Introduce global option '--notext|--no-text' (#745) * Command 'help': For unknown command, exit with error (#737) * Find data-files in the correct order (#727 - Reported #725) * Update OpenSSL to 3.0.7 for Windows distribution 3.1.1 (2022-10-13) * Remove command 'renewable' (#715) * Expand 'show-renew', include 'renewed/certs_by_serial' (#700) * Resolve long-standing issue with --subca-len=N (#691) * ++ NOTICE: Add EasyRSA-Renew-and-Revoke.md (#690) * Require 'openssl-easyrsa.cnf' is up to date (#695} * Introduce 'renew' (version 3). Only renew cert (#688) * Always ensure X509-types files exist (#581 #696) * Expand alias '--days' to all suitable options with a period (#674) * Introduce --keep-tmp, keep temp files for debugging (#667) * Add serialNumber (OID 2.5.4.5) to DN 'org' mode (#606) * Support ampersand and dollar-sign in vars file (#590) * Introduce 'rewind-renew' (#579) * Expand status reports to include checking a single cert (#577) * Introduce 'revoke-renewed' (#547) * update OpenSSL for Windows to 3.0.5 3.1.0 (2022-05-18) * Introduce basic support for OpenSSL version 3 (#492) * Update regex in grep to be POSIX compliant (#556) * Introduce status reporting tools (#555 & #557) * Display certificates using UTF8 (#551) * Allow certificates to be created with fixed date offset (#550) * Add 'verify' to verify certificate against CA (#549) * Add PKCS#12 alias 'friendlyName' (#544) * Support multiple IP-Addresses in SAN (#564) * Add option '--renew-days=NN', custom renew grace period (#557) * Add 'nopass' option to the 'export-pkcs' functions (#411) * Add support for 'busybox' (#543) * Add option '--tmp-dir=DIR' to declare Temp-dir (Commit f503a22) 3.0.9 (2022-05-17) * Upgrade OpenSSL from 1.1.0j to 1.1.1o (#405, #407) - We are building this ourselves now. * Fix --version so it uses EASYRSA_OPENSSL (#416) * Use openssl rand instead of non-POSIX mktemp (#478) * Fix paths with spaces (#443) * Correct OpenSSL version from Homebrew on macOs (#416) * Fix revoking a renewed certificate (Original PR #394) Follow-up commit: ef22701878bb10df567d60f2ac50dce52a82c9ee * Introduce 'show-crl' (d1993892178c5219f4a38d50db3b53d1a972b36c) * Support Windows-Git 'version of bash' (#533) * Disallow use of single quote (') in vars file, Warning (#530) * Creating a CA uses x509-types/ca and COMMON (#526) * Prefer 'PKI/vars' over all other locations (#528) * Introduce 'init-pki soft' option (#197) * Warnings are no longer silenced by --batch (#523) * Improve packaging options (#510) * Update regex for POSIX compliance (#556) * Correct date format for Darwin/BSD (#559) 3.0.8 (2020-09-09) * Provide --version option (#372) * Version information now within generated certificates like on *nix * Fixed issue where gen-dh overwrote existing files without warning (#373) * Fixed issue with ED/EC certificates were still signed by RSA (#374) * Added support for export-p8 (#339) * Clarified error message (#384) * 2->3 upgrade now errors and prints message when vars isn't found (#377) 3.0.7 (2020-03-30) * Include OpenSSL libs and binary for Windows 1.1.0j * Remove RANDFILE environment variable (#261) * Workaround for bug in win32 mktemp (#247, #305, PR #312) * Handle IP address in SAN and renewals (#317) * Workaround for ash and no set -o echo (#319) * Shore up windows testing framework (#314) * Provide upgrade mechanism for older versions of EasyRSA (#349) * Add support for KDC certificates (#322) * Add support for Edward Curves (#354, #350) * Add support for EASYRSA_PASSIN and EASYRSA_PASSOUT env vars (#368) * Add support for RID to SAN (#362) 3.0.6 (2019-02-01) * Certificates that are revoked now move to a revoked subdirectory (#63) * EasyRSA no longer clobbers non-EASYRSA environment variables (#277) * More sane string checking, allowing for commas in CN (#267) * Support for reasonCode in CRL (#280) * Better handling for capturing passphrases (#230, others) * Improved LibreSSL/MacOS support * Adds support to renew certificates up to 30 days before expiration (#286) - This changes previous behavior allowing for certificate creation using duplicate CNs. 3.0.5 (2018-09-15) * Fix #17 & #58: use AES256 for CA key * Also, don't use read -s, use stty -echo * Fix broken "nopass" option * Add -r to read to stop errors reported by shellcheck (and to behave) * Remove overzealous quotes around $pkcs_opts (more SC errors) * Support for LibreSSL * EasyRSA version will be reported in certificate comments * Client certificates now expire in 3 year (1080 days) by default 3.0.4 (2018-01-21) * Remove use of egrep (#154) * Integrate with Travis-CI (#165) * Remove "local" from variable assignment (#165) * Other changes related to Travis-CI fixes * Assign values to variables defined previously w/local * Finally(?) fix the subjectAltName issues I presented earlier (really fixes #168) 3.0.3 (2017-08-22) * Include mktemp windows binary * copy CSR extensions into signed certificate 3.0.2 (2017-08-21) * Add missing windows binaries 3.0.1 (2015-10-25) * Correct some packaging errors 3.0.0 (2015-09-07) * cab4a07 Fix typo: Hellman (ljani: Github) * 171834d Fix typo: Default (allo-: Github) * 8b42eea Make aes256 default, replacing 3des (keros: Github) * f2f4ac8 Make -utf8 default (roubert: Github) 3.0.0-rc2 (2014/07/27) * 1551e5f docs: fix typo (Josh Cepek ) * 7ae44b3 Add KNOWN_ISSUES to stage next -rc release (Josh Cepek ) * a0d58b2 Update documentation (Josh Cepek ) * 5758825 Fix vars.example with proper path to extensions.temp (Josh Cepek ) * 89f369c Add support to change private key passphrases (Josh Cepek ) * 49d7c10 Improve docs: add Upgrade-Notes; add online support refs (Josh Cepek ) * fcc4547 Add build-dist packaging script; update Building docs (Josh Cepek ) * f74d08e docs: update Hacking.md with layout & git conventions (Josh Cepek ) * 0754f23 Offload temp file removal to a clean_temp() function (Josh Cepek ) * 1c90df9 Fix incorrect handling of invalid --use-algo option (Josh Cepek ) * c86289b Fix batch-mode handling with changes in e75ad75 (Josh Cepek ) * e75ad75 refine how booleans are evaluated (Eric F Crist ) * cc19823 Merge PKCS#7 feature from pull req #14 (Author: Luiz Angelo Daros de Luca ) (Modified-By: Josh Cepek ) * 8b1fe01 Support OpenSSL-0.9.8 with the EXTRA_EXTS feature (Josh Cepek ) * d5516d5 Windows: make builds easier by using a matching dir structure (Josh Cepek ) * dc2e6dc Windows: improve external checks and env-var help (Josh Cepek ) 3.0.0-rc1 (2013/12/01) * The 3.x release is a nearly complete re-write of the 2.x codebase * Initial 3.x series code by Josh Cepek -- continuing maintenance by the OpenVPN community development team and associated contributors * Add ECDSA (elliptic curve) support, thanks to Steffan Karger EasyRSA-3.2.2/x509-types/000775 000765 000024 00000000000 14747420057 015304 5ustar00ecriststaff000000 000000 EasyRSA-3.2.2/README.md000664 000765 000024 00000005204 14747420057 014715 0ustar00ecriststaff000000 000000 [![CI](https://github.com/Openvpn/easy-rsa/actions/workflows/action.yml/badge.svg)](https://github.com/Openvpn/easy-rsa/actions/workflows/action.yml) # Overview easy-rsa is a CLI utility to build and manage a PKI CA. In layman's terms, this means to create a root certificate authority, and request and sign certificates, including intermediate CAs and certificate revocation lists (CRL). # Downloads If you are looking for release downloads, please see the releases section on GitHub. Releases are also available as source checkouts using named tags. # Documentation For 3.x project documentation and usage, see the [README.quickstart.md](README.quickstart.md) file or the more detailed docs under the [doc/](doc/) directory. The .md files are in Markdown format and can be converted to html files as desired for release packages, or read as-is in plaintext. # Getting help using easy-rsa Currently, Easy-RSA development co-exists with OpenVPN even though they are separate projects. The following resources are good places as of this writing to seek help using Easy-RSA: The [openvpn-users mailing list](https://lists.sourceforge.net/lists/listinfo/openvpn-users) is a good place to post usage or help questions. Users of GitHub can report problems to the Easy-RSA `issues` list. # Branch structure The easy-rsa master branch is currently tracking development for the 3.x release cycle. Please note that, at any given time, master may be broken. Feel free to create issues against master, but have patience when using the master branch. It is recommended to use a release, and priority will be given to bugs identified in the most recent release. The prior 2.x and 1.x versions are available as release branches for tracking and possible back-porting of relevant fixes. Branch layout is: master <- Active: v3.2.x - Rolling. v3..-