Code Monkey home page Code Monkey logo

Comments (9)

ihipop avatar ihipop commented on August 16, 2024

I've tried to change the

EASYRSA_DN to cn_only

then change the commonName_max of cn_only to 128 in openssl-easyrsa.cnf
still,the error exists:


Using SSL:
* openssl OpenSSL 3.2.1 30 Jan 2024 (Library: OpenSSL 3.2.1 30 Jan 2024)
-----
Error making certificate request
4077017C547F0000:error:06800097:asn1 encoding routines:ASN1_mbstring_ncopy:string too long:crypto/asn1/a_mbstr.c:106:maxsize=64

from easy-rsa.

TinCanTech avatar TinCanTech commented on August 16, 2024

Also, try changing easyrsa:6242:

commonName_max		= 64

from easy-rsa.

ihipop avatar ihipop commented on August 16, 2024

Also, try changing easyrsa:6242:

commonName_max		= 64

have you tried? I can't make it work

from easy-rsa.

TinCanTech avatar TinCanTech commented on August 16, 2024

The max appears to be 64.

from easy-rsa.

ihipop avatar ihipop commented on August 16, 2024

your CloudConnexa of OpenVPN allows a common name to longer than 64 bytes

from easy-rsa.

TinCanTech avatar TinCanTech commented on August 16, 2024

The EasyRSA commonName 64 character limit is sufficient for sensible requirements.

from easy-rsa.

TinCanTech avatar TinCanTech commented on August 16, 2024

Taking ASCII characters 0-9 and a-z gives a naming pool of:

36^64 = 4×10⁹⁹

More than enough.

from easy-rsa.

ihipop avatar ihipop commented on August 16, 2024

Taking ASCII characters 0-9 and a-z gives a naming pool of:

36^64 = 4×10⁹⁹

More than enough.

@TinCanTech

If you use OpenVPN web auth, you will find out that every device has a device ID in the form of UUID, which is 36 bytes long

to distinguish every device with different devices with different common name, usually an enterprise email address is prefixed as a part of a common name, Just like what CloudConnexa of OpenVPN does.
for example

[email protected]/2BB779C3-7765-46AA-9EB2-8E9BFC0500D8

tata, exceed 64bytes~

from easy-rsa.

TinCanTech avatar TinCanTech commented on August 16, 2024

CloudConnexa obviously have their own solution.

from easy-rsa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.