login about faq

I am having a problem loading a .cer file that contains the SSL certificate for my web site. I think that the issue is windows security not allowing access to the file. I have tried to access the file from a network share and local drive.

To cross validate I have tried to open the file with CKFileAccess. I even copied the file name from file explorer to make sure there are no typos on my part.

Thanks

FileAccess:

'ASP Classic
Set oFA = Server.CreateObject("Chilkat.FileAccess")
Response.Write oFA.ReadEntireTextFile ("C:ecerts_insurancevisions_com.cer", "UTF-8") Response.Write oFA.LastErrorHTML Response.End

The Error:
ReadEntireTextFile:

DllDate: Apr 17 2012
UnlockPrefix: NONE
Username: BUTCHER:IUSR_INSVISIONS-1
Architecture: Little Endian; 32-bit
Language: ActiveX
loadFileAnsi:

    openForReadWin32:

        Failed to open file (2)
        localFilePath: C:\ecerts_insurancevisions_com.cer
        currentWorkingDirectory: c:\windows\system32\inetsrv
        osErrorInfo: The system cannot find the file specified.
        localWindowsFilePath: C:\ecerts_insurancevisions_com.cer

ckCert

Set oCert = Server.CreateObject("Chilkat.Cert")
Response.Write oCert.LoadFromFile("C:ecerts_insurancevisions_com.cer")
Response.Write oCert.LastErrorHtml

Response.End

The Error

ChilkatLog:

LoadFromFile:

    DllDate: Apr 17 2012
    UnlockPrefix: NONE
    Username: BUTCHER:IUSR_INSVISIONS-1
    Architecture: Little Endian; 32-bit
    Language: ActiveX
    filename: C:\ecerts_insurancevisions_com.cer
    loadFileAnsi:

        openForReadWin32:

            Failed to open file (2)
            localFilePath: C:\ecerts_insurancevisions_com.cer
            currentWorkingDirectory: c:\windows\system32\inetsrv
            osErrorInfo: The system cannot find the file specified.
            localWindowsFilePath: C:\ecerts_insurancevisions_com.cer

    Failed.</pre>

Screen cap of C Drive

asked Jan 16 '13 at 20:31

emartinson's gravatar image

emartinson
148162030

edited Jan 16 '13 at 20:32


Your code is running on the web server. Is the screen capture (above) a picture of the files on the web server, or a picture of the files on the client-side computer where the browser is running?

link

answered Jan 17 '13 at 09:47

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

And then it is something that simple. :)

(Jan 17 '13 at 12:14) emartinson
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×56
×48
×6

Asked: Jan 16 '13 at 20:31

Seen: 1,401 times

Last updated: Jan 17 '13 at 12:14

powered by OSQA