Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2

Open
ameeno opened this issue Jan 17, 2021 · 53 comments · Fixed by #4
Open

Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2

ameeno opened this issue Jan 17, 2021 · 53 comments · Fixed by #4

Comments

@ameeno
Copy link

ameeno commented Jan 17, 2021

Hello.

I have a mac M1 mba and I am trying to install sidneys/homebrew/chntpw

i have tried via rosetta and also via regular arm homebrew. unfortunately there is an issue building openssl 1.0 for this cpu,

there seems to be some instructions to build it manually on openssl github repo, any chance this can be incorporated into your script?

@fengsx1995
Copy link

I have same problem.

x86_64cpuid.s:273:7: error: invalid token in expression
 cmpq $0,%rax
      ^
x86_64cpuid.s:273:7: error: invalid operand
 cmpq $0,%rax
      ^
x86_64cpuid.s:274:9: error: unknown token in expression
 cmoveq %rcx,%rax
        ^
x86_64cpuid.s:274:9: error: invalid operand
 cmoveq %rcx,%rax
        ^
make[1]: *** [x86_64cpuid.o] Error 1
make: *** [build_crypto] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

@d4rkm0nkey
Copy link

I have the same issue. Anyone got it fixed?

@Kakise
Copy link

Kakise commented Jun 25, 2021

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz

Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

@994279206
Copy link

994279206 commented Jul 8, 2021

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz

Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

i edit the Makefile replace the line that contains OSSLPATH by this one 'OSSLPATH=/opt/homebrew/Cellar/openssl@1.1/1.1.1k' ,i have get a new issue gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.1/1.1.1k/include -Wl chntpw.c warning: unknown warning option '-Wl' [-Wunknown-warning-option] chntpw.c:141:34: error: expected expression DES_set_odd_parity((des_cblock *)key); ^ chntpw.c:141:22: error: use of undeclared identifier 'des_cblock' DES_set_odd_parity((des_cblock *)key); ^ chntpw.c:186:3: error: unknown type name 'des_key_schedule'; did you mean 'DES_key_schedule'? des_key_schedule ks; ^~~~~~~~~~~~~~~~ DES_key_schedule /opt/homebrew/Cellar/openssl@1.1/1.1.1k/include/openssl/des.h:43:3: note: 'DES_key_schedule' declared here } DES_key_schedule; ^ chntpw.c:187:3: error: unknown type name 'des_cblock'; did you mean 'DES_cblock'? des_cblock deskey; ^~~~~~~~~~ DES_cblock

@Kakise
Copy link

Kakise commented Jul 8, 2021

@994279206 It's because chntpw v 0.99.6 uses openssl 1.0 as a dependency, you absolutely need to install that and use it

@minacle
Copy link

minacle commented Jul 23, 2021

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.


(+) Thank @aiden-leong for correction!

@anton-patrushev
Copy link

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz
Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it.

https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle!
It worked for me

@YUX
Copy link

YUX commented Nov 9, 2021

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz
Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it.
https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

the Easy Installation script works

@aiden-leong
Copy link

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install chntpw

Repositories

Issues and PRs are welcome.

Should be:

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

@ashtonvalasko
Copy link

Update. This fixed it:

Easy Installation
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2
YOU NEED TO CHMOD +X uup_download_macos
RUN ./uup_download_macos

BAM it starts downloading.

@kuldeepaher01
Copy link

kuldeepaher01 commented Dec 21, 2021

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

After running the script make gives this error :

make
gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl chntpw.c
gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl ntreg.c
gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl edlib.c
gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl cpnt.c
gcc -c -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl reged.c
gcc -DUSEOPENSSL -g -I. -I/opt/homebrew/Cellar/openssl@1.0/1.0.2u/include -Wl -o cpnt cpnt.o -L/opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib /opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib/libcrypto.a
clang: error: no such file or directory: '/opt/homebrew/Cellar/openssl@1.0/1.0.2u/lib/libcrypto.a'
make: *** [cpnt] Error 1

make: *** Waiting for unfinished jobs....

Do not report this issue to Homebrew/brew or Homebrew/core!

I'm getting this issue... after running the easy installation sxript

@minacle
Copy link

minacle commented Dec 21, 2021

@kuldeepaher01, Please try my new solution that using homebrew tap. #2 (comment)

@aiden-leong
Copy link

As I mentioned before, this works:

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

It's not a good idea to provide brew users a long bash script as I've recommended brew to many friends who don't have IT backgrounds.

Let's keep this thread nice and clean.
Deal?

@pr0b3r7
Copy link

pr0b3r7 commented Jan 1, 2022

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz
Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it.
https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

the Easy Installation script works

This fixed the issue for me

@GeoSpecs13
Copy link

Hello All,

I followed the solutions above, only to find out while it generates the ISO file to create a Windows 10 VM from. According to Parallels, in order to create a VM for Windows 10 on a M1 chipset a VHDX file is needed. Is there a way that this process can generate a VHDX file from this? ISO files from what I understand are only compatible for Intel based machines.

Thanks,
Andrew

@ashtonvalasko
Copy link

ashtonvalasko commented Feb 4, 2022 via email

@jes-ale
Copy link

jes-ale commented Feb 10, 2022

Update. This fixed it:

Easy Installation curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2 YOU NEED TO CHMOD +X uup_download_macos RUN ./uup_download_macos

BAM it starts downloading.

This worked for me <3

@dhanani94
Copy link

dhanani94 commented Feb 19, 2022

Update. This fixed it:
Easy Installation curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb brew install --formula --build-from-source ./openssl@1.0.rb brew install --formula --build-from-source ./chntpw.rb rm ./openssl@1.0.rb ./chntpw.rb

YOU NEED TO $brew install aria2 YOU NEED TO CHMOD +X uup_download_macos RUN ./uup_download_macos
BAM it starts downloading.

This worked for me <3

~/Desktop  ❯❯❯ brew install --formula --build-from-source ./openssl@1.0.rb
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/open
curl: (7) Failed to connect to gist.githubusercontent.com port 443: Bad file descriptor

Error: openssl@1.0: Failed to download resource "openssl@1.0--patch"

Hmm running into this issue, looking into this but yeah, not able to get this to install

edit: @minacle 's method worked beautifully. I had some unrelated networking issues to work through first 🙃

@minacle
Copy link

minacle commented Feb 20, 2022

@dhanani94, Please try my new solution that using homebrew tap. #2 (comment)

@yeldos23
Copy link

yeldos23 commented Jul 7, 2022

thanks!

@Adithr123
Copy link

I have gone through everything, but i still get this error
One of required applications is not installed.
The following applications need to be installed to use this script:

  • aria2c
  • cabextract
  • wimlib-imagex
  • chntpw
  • genisoimage or mkisofs

macOS requires Homebrew (https://brew.sh) to install the prerequisite software.
If you use Homebrew, you can install these using:
brew tap sidneys/homebrew
brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw

@Adithr123
Copy link

I have tried everyones methoods, reinstalling everything, ect

@aycajr
Copy link

aycajr commented Aug 29, 2022

Minacle's method worked for me

@sidneys sidneys closed this as completed in #4 Sep 3, 2022
@sidneys sidneys reopened this Sep 3, 2022
@7081869
Copy link

7081869 commented Sep 22, 2022

Hi I have a similar issue, I've tried minacle method as well as the other the other solution proposed by ashtonvalasko. I'm trying to build a iso file for windows on mac.

The current error message when running ./uup_download_macos.sh is "genisoimage nor mkisofs does seem to be installed", although I have repeatedly tried to install cdrtools over homebrew. Can you help me on this topic?

@minacle
Copy link

minacle commented Sep 22, 2022

@7081869

You should install cabextract, cdrtools, and wimlib too, as wrote in readme.unix.md.

Try below:

brew install cabextract cdrtools wimlib

and then retry your script.

If the problem not resolved, you may need to (re)link them explicitly.

brew unlink cabextract cdrtools wimlib
brew link cabextract cdrtools wimlib

@moekhalil
Copy link

brew install aria2 cabextract cdrtools wimlib

the following is for installing chntpw (instead of messing with make file)

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb

brew install --formula --build-from-source ./openssl@1.0.rb

mkdir -p /opt/homebrew/Cellar/openssl@1.0
sudo ln -s /usr/local/Cellar/openssl@1.0/1.0.2u /opt/homebrew/Cellar/openssl@1.0/1.0.2u
brew install --formula --build-from-source ./chntpw.rb
sudo rm /opt/homebrew/Cellar/openssl@1.0/1.0.2u

I didn't have /opt/homebrew/ at all, so I removed the whole directory when finished.

if chntpw isn't showing up in terminal as available, and brew link chntpw says it is already linked, start new terminal session (or type bash or zsh and press enter)
then run ./uup_download_macos.sh -- and voila!

@SamSlainte
Copy link

I got another error when running "brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw"
anybody can help?

Last 15 lines from /Users/[username]/Library/Logs/Homebrew/openssl@1.0/03.make:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8009892332:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

@alexbear18
Copy link

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

Thank you, it worked for me!

@jack338c
Copy link

jack338c commented May 4, 2023

hello everyone, there is a problem when creating an iso image

`==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u_1 --openss ==> make ==> make test Last 15 lines from /Users/mihail/Library/Logs/Homebrew/openssl@1.0/03.make: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: 8725987820:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968: make[1]: *** [test_ec] Error 1 make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help: Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2 sh: uup_download_macos.sh: No such file or directory`

Has anyone experienced this? Any tips?

I got the same issue

jack6@jack6s-Mac-mini ~ % brew install sidneys/homebrew/openssl@1.0
==> Fetching sidneys/homebrew/openssl@1.0
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c19
Already downloaded: /Users/jack6/Library/Caches/Homebrew/downloads/db281f2b8a51c8a97d6bced562e99959b2c8b3241129895f8850506ccd1f8899--openssl-1.0.2u-darwin-arm64.patch
==> Downloading https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
Already downloaded: /Users/jack6/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz
==> Installing openssl@1.0 from sidneys/homebrew
==> Patching
==> Applying openssl-1.0.2u-darwin-arm64.patch
patching file Configure
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/usr/local/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared en
==> make
==> make test
Last 15 lines from /Users/jack6/Library/Logs/Homebrew/openssl@1.0/03.make:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
140704691860460:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704691860460:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
140704691860460:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2

@wy555
Copy link

wy555 commented May 4, 2023

Update:

I have found that the aria2c is placed in /opt/homebrew/bin after installing aria2.

I set a temporary path to this /opt/homebrew/bin
and able to run the uup_download_macos.sh script to create the Windows 11 Pro ISO file for ARM64 for Macbook Silicon M1.

Your solution works for the minacle/chntpw repository.

Thanks.


I have tried the miracle/chntpw repository and installing the miracle/chntpw/chntpw.

But still running the uup_download_macos.sh script gave the following error:
aria2c does not seem to be installed

Below is the steps I did.

$ /opt/homebrew/bin/brew tap minacle/chntpw
$ /opt/homebrew/bin/brew install aria2 cabextract wimlib cdrtools minacle/chntpw/chntpw

==> Downloading https://formulae.brew.sh/api/formula.jws.json
##O=# #
==> Downloading https://formulae.brew.sh/api/cask.jws.json
##O=# #
Warning: aria2 1.36.0_1 is already installed and up-to-date.
To reinstall 1.36.0_1, run:
brew reinstall aria2
Warning: cabextract 1.11 is already installed and up-to-date.
To reinstall 1.11, run:
brew reinstall cabextract
Warning: wimlib 1.14.1 is already installed and up-to-date.
To reinstall 1.14.1, run:
brew reinstall wimlib
Warning: cdrtools 3.02a09 is already installed and up-to-date.
To reinstall 3.02a09, run:
brew reinstall cdrtools
Warning: minacle/chntpw/chntpw 1.0.1 is already installed and up-to-date.
To reinstall 1.0.1, run:
brew reinstall chntpw

$ bash uup_download_macos.sh
aria2c does not seem to be installed
Check the readme.unix.md for details

@creativetags
Copy link

I've tried the suggestions above and still have the error during make test about elliptic curve routines

@johnd486
Copy link

I also have this problem, building on a MacBook Air M2. Looks like this issue has been open a while, any chance of a fix? The objective is to get Windows 11 ARM running on UTM on said MacBook.

==> make
==> make test
Last 15 lines from /Users/<my_username>/Library/Logs/Homebrew/openssl@1.0/03.make:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8434130604:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8434130604:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8434130604:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
can't install openssl@1.0 https://github.com/sidneys/homebrew-homebrew/issues/20
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2

@herbert256
Copy link

Also on a M2 MacBook Air, came for the same problem here, I found in others issues below solution

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw
brew install aria2 cabextract wimlib cdrtools sidneys/homebrew/chntpw
./uup_download_macos.sh

@invercargill12
Copy link

invercargill12 commented May 24, 2023

Hi everyone!
I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

Error message:

Creating boot.wim...
openHive(): read error: : Inappropriate ioctl for device
chntpw: Unable to open/read a hive, exiting..
[WARNING] Ignoring extended attributes of 1 files
"ISODIR/sources/boot.wim" original size: 402005 KiB
Using LZX compression with 8 threads
Archiving file data: 1118 MiB of 1118 MiB (100%) done
"ISODIR/sources/boot.wim" optimized size: 395341 KiB
Space saved: 6663 KiB

Exporting Windows 11 Core to install.wim...
[ERROR] Destination image description contains illegal characters
ERROR: Exiting with error code 24:
       An invalid parameter was given.
Failed to export Windows 11 Core to install.wim

Does anyone know how to fix it? Thank you.

@herbert256
Copy link

Hi everyone! I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

instead of using uup_download_macos.sh you can download below ISO

https://files.rg-adguard.net/file/eaa79b4b-0b95-add5-9a9e-06bb860ec5cc

@lixianguser
Copy link

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

Thank you, it worked for me!👏

@fmarulaz
Copy link

@lixianguser : Merci beaucoup pour ta solution ! Elle fonctionne parfaitement et m'a permis de résoudre ce problème !
Je tournais en rond depuis des heures, et tu m'as tiré d'affaire ...
Merci encore et bonne (fin de ?) journée.
Bien à toi : Florent

@fmarulaz
Copy link

@lixianguser: Thank you very much for your solution! It works perfectly and allowed me to solve this problem!

I've been going around in circles for hours, and you got me out of trouble...

Thank you again and good (end of?) Day.

Yours: Florent

@adewidar-trz
Copy link

@CrimsonCleaver did you manage to get past the make test stage? I'm stuck at this step too

@lekosbelas
Copy link

Hi everyone! I have such problem when I'm trying to download ISO via command sh uup_download_macos.sh

instead of using uup_download_macos.sh you can download below ISO

https://files.rg-adguard.net/file/eaa79b4b-0b95-add5-9a9e-06bb860ec5cc

@herbert256 Thank you bro

@Ph1eu
Copy link

Ph1eu commented Jun 10, 2023

I think the repository owner will not fix about it.

So, I have created a repositories about chntpw, including homebrew tap.

Installation

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

Repositories

Issues and PRs are welcome.

(+) Thank @aiden-leong for correction!

this worked for my M2. thanks a lot

@benedict051998
Copy link

Kindly help me with this error. I still can't get it to work.

make test
Last 15 lines from /Users/juliusbenedictignacio/Library/Logs/Homebrew/openssl@1.0/03.make:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:100B906B:elliptic curve routines:EC_POINT_set_affine_coordinates_GF2m:point is not on curve:ec_lib.c:994:
8310152876:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8310152876:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
8310152876:error:1007C06B:elliptic curve routines:EC_POINT_set_affine_coordinates_GFp:point is not on curve:ec_lib.c:968:
make[1]: *** [test_ec] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) #2

hyunjun added a commit to hyunjun/bookmarks that referenced this issue Aug 15, 2023
UUP dump https://uupdump.net
Windows 11 on Apple Silicon Macs w/ FREE VMware Player - YouTube https://www.youtube.com/watch?v=za2CyrxKYFs
Arm 맥에 VMware Fusion + Win 11 Arm 설치 https://velog.io/@nonz/Arm-%EB%A7%A5%EC%97%90-VMware-Fusion-Win-11-Arm-%EC%84%A4%EC%B9%98
설치 명령은 `readme.unix.md` 보고 해야 update된 명령으로 실행 가능
그럼에도 오류가 있어서 다음 link를 가서 수정 실행 후 성공
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) · Issue #2 · sidneys/homebrew-homebrew sidneys/homebrew-homebrew#2
@Drovosek01
Copy link

Drovosek01 commented Oct 7, 2023

I tri install sidneys/homebrew/chntpw for use UUPDump script on my macOS. I test it on hackintosh (of couse Intel processor) with macOS Monterey 12.6.8.

I execute in terminal brew install sidneys/homebrew/chntpw but after ~5-7 minutes it crash on testes:

% brew install sidneys/homebrew/chntpw
==> Fetching dependencies for sidneys/homebrew/chntpw: sidneys/homebrew/openssl@1.0
==> Fetching sidneys/homebrew/openssl@1.0
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/openssl-1.0.2u-darwin-arm64.patch
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/db281f2b8a51c8a97d6bced562e99959b2c8b3241129895f8850506ccd1f8899--openssl-1.0.2u-darwin-arm64.patch
==> Downloading https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz
==> Fetching sidneys/homebrew/chntpw
==> Downloading https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz
Already downloaded: /Users/user/Library/Caches/Homebrew/downloads/dee692592b6fc0d6db43012210cf70e9ef7a6018e20818b5f15187cbd3a06e39--chntpw-0.99.6.tar.gz
==> Installing chntpw from sidneys/homebrew
==> Installing dependencies for sidneys/homebrew/chntpw: sidneys/homebrew/openssl@1.0
==> Installing sidneys/homebrew/chntpw dependency: sidneys/homebrew/openssl@1.0
==> Patching
==> Applying openssl-1.0.2u-darwin-arm64.patch
patching file Configure
==> perl ./Configure --prefix=/usr/local/Cellar/openssl@1.0/1.0.2u_1 --openssldir=/usr/local/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-x86_64-cc enable-ec_nist
==> make
==> make test
Last 15 lines from /Users/user/Library/Logs/Homebrew/openssl@1.0/03.make:
g = 2
Salt = 77AD42C3AD1C52E22BA5B955ACB20925A951F64B
Verifier = 4731801457956035ABE95D4CD73EF79AE97BC0453633A09350B3285128329BFA2A2489ABA89EB768A9FECE0467020978EE6F468FD98173F6497D662ABF793F734E0F63ECC4DA3C9F14EE52973D8ADB6CC5895688DE49348BB0957AEE9C159CA36C2579080F7EFE2B82E3317E650D447BCB0831CB154863A39889CD90A1B06740
b = 2508C70A803705B0C866382BE09241465837DB0DDDB3BB53695DEA74D186930E
B = C0578B34AC2794861E51A4F1877E17240ABDEACFDC0B2E464AF6FCE13FCDA4ADF44BB8EA9E7325F1E21488D4AA369CB958AA9D678DD270AD6DBB553F6E6B61B81D1D31B706382374F3BF962484B9296F241BAFA14EBBC82850404E813C043330685D93269A2CE9BA7D6D83833BF14475728A796503C705769B25CC89CCC662BE
a = 49331204691F060CBF715C0B01927C3BA646AE45EBA03442BA300832C81DB79
A = 1EB0172EB4AC1621C18946ED6D9A8210F2EEE3E248B2A0D8389D649551BF3041C35DEC4B6F30941B82153AA33C2E96B6258D74A6F7DB5E2387BC02B70336CCF284967FFBF671362C601FCD3CBE46154D022037E8A22EB17EAD455DE90DE713A848272A715ED857D80FB0FA07EDE7ED096A41F4D2A5D7DA37AFC2B787F66C6D55
Client's key = E992E408A1954BC7FECF1AB0B079E80C9418215F418D74E2510631ED9A3FDCF6DB8041545F3D1EEE58D053A8DDE6D9D6EB85F98F2EB1D92A8F7B549B963350262EB081CBE4215FEF5A7035340B2F2098A12CAFA2B7D4DF76ED726374952A2E2E26847DA985B0A2D580AB176B615BCF0E5F04C8D8A120CD7FF941C90E922B8D82
Server's key = E992E408A1954BC7FECF1AB0B079E80C9418215F418D74E2510631ED9A3FDCF6DB8041545F3D1EEE58D053A8DDE6D9D6EB85F98F2EB1D92A8F7B549B963350262EB081CBE4215FEF5A7035340B2F2098A12CAFA2B7D4DF76ED726374952A2E2E26847DA985B0A2D580AB176B615BCF0E5F04C8D8A120CD7FF941C90E922B8D82
CMS consistency test
/usr/bin/perl cms-test.pl
CMS => PKCS#7 compatibility tests
signed content DER format, RSA key: verify error
make[1]: *** [test_cms] Error 1
make: *** [tests] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/sidneys/homebrew-homebrew/issues

These open issues may also help:
Mac M1 chntpw not building (Openssl 1.0 requirement not satisfied) https://github.com/sidneys/homebrew-homebrew/issues/2

Screenshot 2023-10-08 at 00 40 00

Anybody know how fix it?

UPDATE:
Installing alternatives

brew tap minacle/chntpw
brew install minacle/chntpw/chntpw

from comment - #2 (comment) fixed problem.

Why UUPDump readme file recommend use this repository instead repositoy by @minacle ? :/

@adrianbourke
Copy link

I have the same issue. Anyone got it fixed?

To get it fixed, use @itsmattkc's PR, then download chntpw from sidney's cask, here: https://github.com/sidneys/chntpw/archive/0.99.6.tar.gz
Untar the downloaded file, edit the Makefile replace the line that contains OSSLPATH by this one:

OSSLPATH=/opt/homebrew/Cellar/openssl@1.0/1.0.2u

Save the Makefile, go to the terminal, navigate to the folder where chntpw is located, execute make and, finally, cp chntpw /opt/hombrew/bin and you're good to go

Made a patch for it.
https://gist.github.com/minacle/87d11243b135b2041c945f1287d33d7e

Easy Installation

curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/openssl@1.0.rb
curl -LO https://gist.github.com/minacle/e9dedb8c17025a23a453f8f30eced3da/raw/908b944b3fe2e9f348fbe8b8800daebd87b5966c/chntpw.rb
brew install --formula --build-from-source ./openssl@1.0.rb
brew install --formula --build-from-source ./chntpw.rb
rm ./openssl@1.0.rb ./chntpw.rb

Thanks, @minacle! It worked for me

Anyone had issues with this?

brew install --formula --build-from-source ./openssl@1.0.rb

==> Fetching openssl@1.0
==> Downloading https://gist.githubusercontent.com/felixbuenemann/5f4dcb30ebb3b86e1302e2ec305bac89/raw/b339a33ff072c9747df21e2558c36634dd62c195/openssl-1.0.2u-darwin-arm64.patch
Already downloaded: /Users/adrian/Library/Caches/Homebrew/downloads/db281f2b8a51c8a97d6bced562e99959b2c8b3241129895f8850506ccd1f8899--openssl-1.0.2u-darwin-arm64.patch
==> Downloading https://ftp.openssl.org/source/old/1.0.2/openssl-1.0.2u.tar.gz
Already downloaded: /Users/adrian/Library/Caches/Homebrew/downloads/6a06bfa556bd474c7e4efb2eab11c7d43d4238b508bd91e74c438653e24b8a45--openssl-1.0.2u.tar.gz
==> Patching
==> Applying openssl-1.0.2u-darwin-arm64.patch
patching file Configure
==> perl ./Configure --prefix=/opt/homebrew/Cellar/openssl@1.0/1.0.2u --openssldir=/opt/homebrew/etc/openssl@1.0 no-ssl2 no-ssl3 no-zlib shared enable-cms darwin64-arm64-cc enabl
==> make
Last 15 lines from /Users/adrian/Library/Logs/Homebrew/openssl@1.0/02.make:
2024-02-01 17:54:41 +0000

make

making all in crypto...
/usr/bin/perl ../util/mkbuildinf.pl "clang -I. -I.. -I../include  -fPIC -fno-common -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch arm64 -O3 -DL_ENDIAN -Wall" "darwin64-arm64-cc" >buildinf.h
clang -I. -I.. -I../include  -fPIC -fno-common -DOPENSSL_PIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -arch arm64 -O3 -DL_ENDIAN -Wall   -c -o cryptlib.o cryptlib.c
/opt/homebrew/Library/Homebrew/shims/mac/super/clang: line 9: /opt/homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby: Argument list too long
/opt/homebrew/Library/Homebrew/shims/mac/super/clang: line 9: /opt/homebrew/Library/Homebrew/vendor/portable-ruby/current/bin/ruby: Undefined error: 0
make[1]: *** [cryptlib.o] Error 1
make: *** [build_crypto] Error 1

Do not report this issue to Homebrew/brew or Homebrew/homebrew-core!

@StupidRepo
Copy link

StupidRepo commented Nov 1, 2024

Hey guys! I love how everyone is writing scripts for the ARM64 Macs, but every. single. one of you are overlooking one thing!!!

amd64 Macs

Please could someone drop a link for installing chntpw on an amd64 Mac?!

EDIT: Seems like someone did do it. #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.