0
我已經通過hidden service with nginx 設置了一個隱藏服務,雖然工作起來相當不錯。 不,我想通過使用我已經創建的自簽名證書來確保連接。使用TOR(由nginx提供)機智ssl
這是我隱藏服務的虛擬主機文件:
server {
server_name myHASH.onion;
listen 127.0.0.1:8080;
root /var/www/;
client_max_body_size 99M;
index index.html index.php;
auth_basic "Restricted";
auth_basic_user_file /usr/local/nginx/.htpasswd;
# pass the PHP scripts to FastCGI server listening on the php-fpm socket
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
} }
這工作對我來說,隱藏的服務是在線和活躍。 現在我想添加SSL證書,薩爾迪我不知道如何做到這一點,因爲'從''內'的連接'來'。
那麼,爲了獲得ssl支持,我必須添加到我的隱藏服務vhost文件中?
提前致謝! 馬克