getting error while running âNew-PACertificate â*.abc-dc.comâ -DnsPlugin Route53 -PluginArgs $r53Paramsâ
I have successfully run following commands:
- Save-Module -Name Posh-ACME -Path âC:\Program Files\WindowsPowerShell\Modulesâ
- Install-Module -Name Posh-ACME
- Set-AWSCredential -StoreAs âcertbot-testuserâ -AccessKey âXXXXXXXXXXXâ -SecretKey âXXXXXXXXXXâ
- Initialize-AWSDefaultConfiguration -ProfileName âcertbot-userâ
- $r53Params = @{R53ProfileName=âcertbot-userâ}
Below is the error message while running the final command " New-PACertificate â*.abc-dc.comâ -DnsPlugin Route53 -PluginArgs $r53Params"
New-Object : Cannot find type [Org.BouncyCastle.Security.SecureRandom]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:38 char:20
New-Object : Cannot find type [Org.BouncyCastle.Crypto.Generators.RsaKeyPairGenerator]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:65 char:23
New-Object : Cannot find type [Org.BouncyCastle.Crypto.KeyGenerationParameters]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:66 char:25
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:67 char:13
-
$rsaGen.Init($genParam)
-
~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : InvalidOperation: ( [], RuntimeException
- FullyQualifiedErrorId : InvokeMethodOnNull
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:68 char:13
Export-Pem : Cannot bind argument to parameter âInputObjectâ because it is null.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:73 char:20
New-Object : Cannot find type [Org.BouncyCastle.Asn1.X509.X509Name]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:80 char:16
New-Object : Cannot find type [Collections.Generic.Dictionary[Org.BouncyCastle.Asn1.DerObjectIdentifier,Org.BouncyCastle.Asn1.X509.X509Extension]]: verify that the assembly containing this
type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:83 char:16
New-Object : Cannot find type [Org.BouncyCastle.Asn1.X509.BasicConstraints]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:86 char:134
Unable to find type [Org.BouncyCastle.Asn1.X509.KeyUsage].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:87 char:172
Unable to find type [Org.BouncyCastle.Asn1.X509.KeyPurposeID].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:88 char:184
Unable to find type [Org.BouncyCastle.Asn1.X509.GeneralName].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:91 char:98
New-Object : Cannot find type [Org.BouncyCastle.Asn1.X509.GeneralNames]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:92 char:122
New-Object : Cannot find type [Org.BouncyCastle.X509.Extension.SubjectKeyIdentifierStructure]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:93 char:121
Unable to find type [Org.BouncyCastle.Asn1.X509.X509Extensions].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:96 char:18
Unable to find type [Org.BouncyCastle.Asn1.X509.X509Extensions].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:97 char:18
Unable to find type [Org.BouncyCastle.Asn1.X509.X509Extensions].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:98 char:18
Unable to find type [Org.BouncyCastle.Asn1.X509.X509Extensions].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:99 char:18
Unable to find type [Org.BouncyCastle.Asn1.X509.X509Extensions].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:100 char:18
New-Object : Cannot find type [Org.BouncyCastle.Asn1.X509.X509Extensions]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:110 char:19
Unable to find type [Org.BouncyCastle.Asn1.Pkcs.PkcsObjectIdentifiers].
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:111 char:110
New-Object : Cannot find type [Org.BouncyCastle.Pkcs.Pkcs10CertificationRequest]: verify that the assembly containing this type is loaded.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:114 char:12
Export-Pem : Cannot bind argument to parameter âInputObjectâ because it is null.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:117 char:16
-
Export-Pem $req $reqFile
-
~~~~
- CategoryInfo : InvalidData: ( [Export-Pem], ParameterBindingValidationException
- FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Export-Pem
You cannot call a method on a null-valued expression.
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\New-Csr.ps1:120 char:12
Error parsing certificate request: asn1: syntax error: sequence truncated
At C:\Program Files\WindowsPowerShell\Modules\Posh-ACME\2.7.0\Private\Invoke-ACME.ps1:135 char:9
-
throw [AcmeException]::new($acmeError.detail,$acmeError)
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : OperationStopped: ( [], AcmeException
- FullyQualifiedErrorId : Error parsing certificate request: asn1: syntax error: sequence truncated