Archived Forum Post

Index of archived forum posts

Question:

Can not access SSL certificae file (.cer)

Jan 17 '13 at 12:14

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


Answer

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?