Giter VIP home page Giter VIP logo

Comments (16)

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

Ok, so I figured it out. Maybe it'll help someone.

It turned out, that the ACMESharp module was installed, but was not in the proper directory. Apparently, C:\Program Files\WindowsPowerShell\Modules (the one that has ACMESharp module installed) isn't used by Powershell initialized in Certify, but other directories are taken into account. Not sure why it's like that, but it is.

So I copied whole ACMESharp module directory from C:\Program Files\WindowsPowerShell\Modules\ACMESharp
to
c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\ (for 32 bits apps usage)
and to
c:\Windows\system32\WindowsPowerShell\v1.0\Modules\ (just in case for 64 bits apps)

After restarting Certify - it started to work.

from certify.

webprofusion-chrisc avatar webprofusion-chrisc commented on May 18, 2024

Reopening to track this problem. We need to decide how best to handle this for others, the PowerShell module installation is likely one of the biggest hurdles for users.

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

Thinking about it, it looks like they're at least 2 or 3 Powershell "module repositories" in Windows 64 bit.

I'd expect modules to land in c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\ when installing from 32 bit Powershell, and to c:\Windows\system32\WindowsPowerShell\v1.0\Modules\ when installing from 64 bit Powershell, but I don't understand why it landed in C:\Program Files\WindowsPowerShell\Modules\ACMESharp when installing from 64 bit Powershell (run as administrator). This prevented Certify from finding the module.

What may be the reason for this? Maybe it's a Nuget related issue?

from certify.

amilo2003 avatar amilo2003 commented on May 18, 2024

I was using version 0.8? and I am now trying to renew the certificate. I ran into the same issue as above, thanks @ZmorzynskiK for your solution!

I however receive this error message now:
Challenge not yet completed. Check that http://www.test.com/ACMESharp.AuthorizeChallenge path/file is present and accessible in your web browser.

Thereafter app crashes with error:
Certificate has not been submitted yet, cannot update status.

The .well-known path exists

Do I need to create new path manually?

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

@amilo2003 I'm using the newest version of ACMESharp which is 0.8.1.
Do you have anything inside .well-known folder? There should be another folder (acme-challenge) inside with some files.

AFAIR just to be sure I created those two folders manually and placed there web.config with contents:

<?xml version = "1.0" encoding="UTF-8"?>
 <configuration>
     <system.webServer>
          <staticContent>
	        <mimeMap fileExtension="." mimeType="text/plain" />
   </staticContent>
     </system.webServer>
 </configuration>

Everything then went smoothly.

from certify.

amilo2003 avatar amilo2003 commented on May 18, 2024

Thanks, it worked! All renewed now.

from certify.

Line98Dev avatar Line98Dev commented on May 18, 2024

So I did above and still having the original issue. Using Windows Server 2012 R2 and the latest (at time of writing) version of Certify
`PS C:\Users\Administrator> Get-Module -ListAvailable ACMESharp

Directory: C:\Program Files\WindowsPowerShell\Modules

ModuleType Version Name ExportedCommands


Binary 0.8.1 ACMESharp {Get-Certificate, Get-ChallengeHandlerProfile, Get-Identif...

Directory: C:\Windows\system32\WindowsPowerShell\v1.0\Modules

ModuleType Version Name ExportedCommands


Binary 0.8.1 ACMESharp {Get-Certificate, Get-ChallengeHandlerProfile, Get-Identif...`
Is there another command I'm not aware of? Not experienced with PowerShell or PowerShell Gallery.
It worked fine until I updated to latest version of Certify and now it broke. I have SSL certs installed by Certify from the previous version.

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

@HunterLine did you copied the ACMESharp module also to c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\?

from certify.

Line98Dev avatar Line98Dev commented on May 18, 2024

It is a 64-bit OS, should I create the folder for 32-bit

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

Yes, SysWOW64 is for 32 bit apps. Just check if you have folder named c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\ and copy ACMESharp there.

from certify.

alecrespo avatar alecrespo commented on May 18, 2024

Hi @ZmorzynskiK I run the ps and then copy the module to

C:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules
C:\Windows\system32\WindowsPowerShell\v1.0\Modules

Still Certify cannot find it. I'm missing something?

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

Just to be 100% sure: are you invoking all those PS commands and Certify app as administrator? Do you see the module (Get-Module -ListAvailable ACMESharp) in both those directories when running 32bit version of PS and 64bit version of PS?

from certify.

webprofusion-chrisc avatar webprofusion-chrisc commented on May 18, 2024

I think this answers my suspicion that using the ACMESharp from PowerShell gallery is just too complicated. We will migrate to using our own build of ACMESharp as soon as we can.

from certify.

ZmorzynskiK avatar ZmorzynskiK commented on May 18, 2024

@soundshed great, I can try to help if needed.

from certify.

webprofusion-chrisc avatar webprofusion-chrisc commented on May 18, 2024

A new version of Certify has now been release which bundles a local copy of ACMESharp, removing the need for the Install-Module step. Please try it out :)

from certify.

webprofusion-chrisc avatar webprofusion-chrisc commented on May 18, 2024

Resolved in latest release. Closing.

from certify.

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.