Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directory name is invalid when saving certificate #236

Closed
JohnLahr opened this issue Jun 11, 2016 · 4 comments
Closed

Directory name is invalid when saving certificate #236

JohnLahr opened this issue Jun 11, 2016 · 4 comments
Labels

Comments

@JohnLahr
Copy link

I've been having this problem since I upgraded to the latest release, and it seems to happen now to any release even if I clear all files from both the LetsEncrypt directory and from the directory in %AppData%\Roaming.

Upon trying to create a certificate, all works as is should up until the point where it tries to save and apply the new certificate. I'll find the -crt.der in my AppData directory, but IIS doesn't see a usable certificate, and the LetsEncrypt console reads:

Requesting Certificate
  Request Status: Created
  Saving Certificate to C:\Users\<myusername>\AppData\Roaming\letsencrypt-win-simple\httpsacme-v01.api.letsencrypt.org\example.mydomain.com-crt.der
System.IO.IOException: The directory name is invalid.

    at System.IO.__Error.WinIOError(Int32 errorCode, String maybefullPath)
    at System.IO.__Error.WinIOError()
    at System.IO.Path.InternalGetTempFileName(Boolean checkHost)
    at LetsEncrypt.ACME.Simple.Program.GetIssuerCertificate(CertificateRequest certificate, CertificateProvider cp)
    at LetsEncrypt.ACME.Simple.Program.GetCertificate(Target binding)
    at LetsEncrypt.ACME.Simple.Program.Auto(Target binding)
    at LetsEncrypt.ACME.Simple.Plugin.Auto(Target target)
    at LetsEncrypt.ACME.Simple.Program.Main(String[] args)
Press enter to continue.

I tried running as Administrator assuming it was a permission issue, but that hasn't solved anything. (Plus the file is showing up in the directory, just not in IIS)

@rkerber
Copy link
Collaborator

rkerber commented Jun 11, 2016

I don't think it will show anything else, but could you enable Debug Logging and see if you see anything else in the Event Logs?

@JohnLahr
Copy link
Author

It doesn't provide any new information, just sort of repeats itself. It's still just claiming the save location is in an invalid directory despite the fact that I can see the file there.

@rkerber
Copy link
Collaborator

rkerber commented Jun 16, 2016

#146 Might help with this. Otherwise i'm not sure what's causing it.

@nul800sebastiaan
Copy link
Contributor

v2 will feature a configurable path for the output directory (see #394).
Since this has been inactive for a few months I'll close it now. Please feel free to re-open this if you have steps to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants