You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dim pfxBuilder = cert.ToPfx(privateKey)
Dim pfxData = pfxBuilder.Build(dr, My.Settings.pfxPassword)
Dim pfxFileName = Path.Combine(My.Settings.pfxFolder, dr & ".pfx")
File.WriteAllBytes(pfxFileName, pfxData)`
I need to have separate private and public keys for streaming software Unreal Media Server.
Would you be so kind to point me for some resources how to export these files?
Thank you very much
Miroslav
The text was updated successfully, but these errors were encountered:
Hello, I got same idea and spent half day with this task.
It seems I can export certificate and private key with password, but when I try to remove password, I got error:
You have the option of calling .ToPem() on both your key and certificate chain then saving that output to files, or for OpenSSL use ec instead of rsa because your private key here is ECDSA not RSA.
Hello, I would like to ask you for a help.
I am using next .NET 4.8 code for PFX saving, which is good for IIS.
`Dim privateKey = KeyFactory.NewKey(KeyAlgorithm.ES256)
Dim cert As CertificateChain = Await myOrder.Generate(New CsrInfo With {.CommonName = dr,
.CountryName = "CZ",
.State = "Czech",
.Locality = "",
.Organization = "",
.OrganizationUnit = "CA"}, privateKey)
Dim pfxBuilder = cert.ToPfx(privateKey)
Dim pfxData = pfxBuilder.Build(dr, My.Settings.pfxPassword)
Dim pfxFileName = Path.Combine(My.Settings.pfxFolder, dr & ".pfx")
File.WriteAllBytes(pfxFileName, pfxData)`
I need to have separate private and public keys for streaming software Unreal Media Server.
Would you be so kind to point me for some resources how to export these files?
Thank you very much
Miroslav
The text was updated successfully, but these errors were encountered: