GithubHelp home page GithubHelp logo

Comments (8)

strongX509 avatar strongX509 commented on June 12, 2024

The error is generated by the identification_create_from_string() function

https://github.com/strongswan/strongswan/blob/5.9.5/src/scepclient/scepclient.c#L1121

and I don't think that any Ubuntu strongSwan package is missing. Could you call scepclient with the --debug 2 option so that the actual DN being parsed is printed out?

from strongswan.

thrdgeek avatar thrdgeek commented on June 12, 2024

The dn printed is: dn: 'C=US, S=Michigan, L=Detroit, O={company}, OU=Ubuntu, CN=USFRYLNCNGLHP45'
error: parsing of distinguished name failed

The values match the declared variables.

from strongswan.

thrdgeek avatar thrdgeek commented on June 12, 2024

To add, this is the same script that has worked on prior releases of Ubuntu.

from strongswan.

strongX509 avatar strongX509 commented on June 12, 2024

Problem detected :-) You have erroneously been using S= for State which actually up to strongSwan 5.9.2 was the identifier assigned to Surname but was changed to SN= in January 2021 with the following commit d8e4a2a.

As a consequence strongSwan 5.9.5 used by Ubuntu Jammy is faulting on the now inexisting S= identifier.

Fix: In your script use the correct ST= identifier that has always been assigned to State.

from strongswan.

thrdgeek avatar thrdgeek commented on June 12, 2024

Wow, such a subtle change. Why the change, just curious? I guess I will need to build logic to detect the release and use the appropriate options. Thanks.

from strongswan.

thrdgeek avatar thrdgeek commented on June 12, 2024

It appears the 'SN' is supported in version 5.8.2 for Focal also.

from strongswan.

strongX509 avatar strongX509 commented on June 12, 2024

Using the correct identifier ST= for State works for all strongSwan versions.

from strongswan.

thrdgeek avatar thrdgeek commented on June 12, 2024

Thank you. I don't know where I got the use of SN from.

from strongswan.

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.