Comments (16)
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.
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.
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.
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.
@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.
Thanks, it worked! All renewed now.
from certify.
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.
@HunterLine did you copied the ACMESharp
module also to c:\Windows\SysWOW64\WindowsPowerShell\v1.0\Modules\
?
from certify.
It is a 64-bit OS, should I create the folder for 32-bit
from certify.
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.
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.
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.
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.
@soundshed great, I can try to help if needed.
from certify.
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.
Resolved in latest release. Closing.
from certify.
Related Issues (20)
- AutoUpdate.ps1 script is broken HOT 4
- DNS Validation Fails for IONOS DNS API HOT 2
- acme-dns DNS API failed HOT 2
- Propagation timer not being preserved when using Constellix API (posh-acme) script HOT 1
- Save button abnormalities HOT 3
- AcmeDNS Provider Error for API Update HOT 4
- Export does not exports whole chain HOT 7
- Feature Request: ARM64 Support HOT 5
- Export to .pfx with password HOT 5
- PowerShell script - with space in path / new process HOT 4
- azure.identity.1.7.0.nupkg: 1 vulnerabilities (highest severity is: 8.8)
- Error when using Export Certificate task HOT 1
- Wrong IIS binding updated HOT 2
- "Deploy to RDP Gateway service" error HOT 1
- TLS website monitoring HOT 1
- The private key generated by the ECDSA algorithm cannot be imported HOT 7
- Windows AD CS + ACME HOT 2
- system.identitymodel.tokens.jwt.6.24.0.nupkg: 1 vulnerabilities (highest severity is: 6.8)
- coverlet.msbuild.3.1.2.nupkg: 1 vulnerabilities (highest severity is: 7.5)
- coverlet.collector.3.1.2.nupkg: 1 vulnerabilities (highest severity is: 7.5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from certify.