Score:0

Can I set my own SSL certificate via .htaccess file in a shared web server?

cn flag
krg

I am hosted in a shared web (apache) server in a subdomain. I don't have access to any panel, only sshfs.

The problem is that the host (lazy), does not issues / uses SSL certificates.

I issued my own (letsencrypt) but I can't direct the apache to use my certificate. Is it possible via .htaccess file?

I tried this in a .htaccess file but server is crashing (internal error)

SSLCertificateFile "/server_path/user/public_html/letsencrypt/fullchain.pem"
SSLCertificateKeyFile "/server_path/user/public_html/letsencrypt/privkey.pem"
SSLCertificateChainFile "/server_path/user/public_html/letsencrypt/chain.pem"

PHP info has those values empty: openssl.cafile, openssl.capath.

I don't know the version of apache. PHP is 5.6.40 (I know: obsolete)

Score:1
in flag

No. SSL configuration directives can only be set in the contexts server config and virtual host. Not in a .htaccess file.

krg avatar
cn flag
krg
Thank you for the detailed answer.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.