Skip to content

BN_lebin2bn used, but not available in AWS-LC-FIPS #1871

Open

Description

Microsoft build of Go version

go1.25

What is your operating system and platform?

Some Amazon Bottlerocket, likely 1.45

Output of go env in your module/workspace:

n/a

What did you do?

Build and run go binary on bottlerocket 1.45

What did you see happen?

Cannot get required symbol "BN_lebin2bn" from libcrypto version 1.1
SIGABRT: abort
...
vendor/github.com/golang-fips/openssl/v2._Cfunc_go_openssl_load_functions
...

What did you expect to see?

Some sensible warning that OpenSSL 1.0 is no longer supported.

Or the application just working, and using other symbols that are available in OpenSSL 1.0.2k-fips 26 Jan 2017

Based on known-versions I thought 1.0.2 is still supported.

Maybe ECDSA code paths are triggered, when ECDSA is not supported at all, or some such? Or is this an issue from bind-now linking?

Activity

  1. dagood commented on Sep 15, 2025

    @dagood
    Member

    Cannot get required symbol "BN_lebin2bn" from libcrypto version 1.1

    I'm a little puzzled by this string. The "from libcrypto version" bit is present in 1.24, but not 1.25. (Or at least I can't find a place where it might come from in 1.25.) The 1.1 seems to indicate that it found OpenSSL 1.1 and is trying to load it, not a 1.0. Maybe the system has a weird symlink from 1.1 -> 1.0? Could try GO_OPENSSL_VERSION_OVERRIDE to work around that if that's the case.

    As you suspect, 1.0 is no longer supported in 1.25.


    About support: https://github.com/golang-fips/openssl?tab=readme-ov-file#multiple-openssl-versions-supported is up to date, but IMO we're missing updates to:

    We also don't have a ms-go1.25-support branch in https://github.com/golang-fips/openssl yet to make it clearer if v2 has advanced past what's in 1.25. (Not yet.)

    Quim Muntal (@qmuntal) George Adams (@gdams)

  2. xnox commented on Sep 15, 2025

    @xnox
    ContributorAuthor

    Davis Goodin (@dagood) thank you; yeah, i would have expected that knownVersions is updated.

    let me figure out what I can do here.

  3. xnox commented on Sep 25, 2025

    @xnox
    ContributorAuthor

    oooh, pondering if it actually is aws-lc-fips masquarading as openssl. As that is the only sane explanation of how come it reports 11 abi without the openssl 11 symbols.

  4. changed the title [-]BN_lebin2bn used, but not available in openssl 1.0[/-] [+]BN_lebin2bn used, but not available in AWS-LC-FIPS[/+] on Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions