I have this code in one asp page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Response.AppendHeader("content-disposition", "attachment; filename=PublicKeyCertificate.cer")
Response.ContentType = "application/x-x509-ca-cert"
Response.BinaryWrite(Session("cerbytes"))
Response.End()
End Sub
This code download a .cer file. Instead of download it, is there any way to open it? When you set content-type to application/pdf, most browsers, open the pdf in a new tab. Can i do the same with cer files?