Comments (5)
It worked, thank you!
from posh-acme.
Hi @istvanmate, thanks for reaching out. I think the problem is that you're using the -Subject
parameter incorrectly by passing the plain domain name. That is for specifying a custom x509 Subject field which shouldn't be necessary most of the time. It's usually only used for private internal CAs.
I'm guessing if you just remove that parameter, it will start working.
from posh-acme.
Tried it without -Subject and -FriendlyName, I think the error is the same:
MethodInvocationException: C:\Users\username\Documents\PowerShell\Modules\Posh-ACME\4.21.0\Private\New-Csr.ps1:78
Line |
78 | $subject = [Org.BouncyCastle.Asn1.X509.X509Name]::new($Order. …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling ".ctor" with "1" argument(s): "badly formated directory string"
New-Object: C:\Users\username\Documents\PowerShell\Modules\Posh-ACME\4.21.0\Private\New-Csr.ps1:137
Line |
137 | $req = New-Object Org.BouncyCastle.Pkcs.Pkcs10CertificationReques …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Exception calling ".ctor" with "5" argument(s): "Value cannot be null. (Parameter 'subject')"
Export-Pem: C:\Users\username\Documents\PowerShell\Modules\Posh-ACME\4.21.0\Private\New-Csr.ps1:140
Line |
140 | Export-Pem $req $reqFile
| ~~~~
| Cannot bind argument to parameter 'InputObject' because it is null.
InvalidOperation: C:\Users\username\Documents\PowerShell\Modules\Posh-ACME\4.21.0\Private\New-Csr.ps1:143
Line |
143 | return (ConvertTo-Base64Url $req.GetEncoded())
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
OperationStopped: C:\Users\username\Documents\PowerShell\Modules\Posh-ACME\4.21.0\Private\Invoke-ACME.ps1:174
Line |
174 | throw [AcmeException]::new($acmeError.detail,$acmeError)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| No order for ID 14836643033
from posh-acme.
If you re-ran the exact same command, it might still be trying to re-use the order created from the previous command. Give this a try to remove the reference to the old order before re-running the command.
Get-PAOrder "domain.name" | Remove-PAOrder -Force
from posh-acme.
Also, the FriendlyName should be fine. Only the Subject was causing the problem.
from posh-acme.
Related Issues (20)
- Set-PAOrder revokes certificate when -Force used, even with -RevokeCert:$false HOT 1
- [WebRoot Plugin] Support for Network Share Credentials HOT 3
- Is there a reason that the (Get-PACertificate).RenewAfter property is a [System.String] when the NotBefore and NotAfter are [datetime]? HOT 2
- How to use with PowerDNS, can't fins DNS-plugin? HOT 12
- Feedback Request: Dropping Support for PowerShell 5.1 HOT 5
- 1year / 365 days cert ZeroSSL (aka Lifetime LifetimeDays variable) HOT 8
- WEDOS DNS support ? HOT 5
- Multiple Accounts with DigiCert HOT 4
- Cloudflare Plug In fails to convert String to SecureString HOT 7
- Submit-Renewal doesn't appear to follow ErrorAction HOT 2
- Is there a full list of supported fields for -Subject? HOT 3
- 404 on Submit-ChallengeValidation when using LetsEncrypt Staging HOT 1
- OVH plugin using DnsAlias fails if not using subdomain of the OVHdomain HOT 2
- Trying to use ZeroSSL HOT 4
- Problem with OVH plugin for creating/renewing certificates HOT 8
- FullChainFile doesn't contain ISRG Root X1 HOT 9
- Active24 plugin no longer working HOT 25
- Pull cert into local certificate store using FQDN and Subsequent renew HOT 5
- CmdLets Repeatedly asking for DNS Text Records HOT 3
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 posh-acme.