Очевидно, что поскольку вы используете Java и Apache, это будет не очень хорошо, но в любом случае, если вы также будете заниматься какой-либо разработкой .Net, у вас будут доступны эти инструменты, и, возможно, это поможет вам на вашем пути и в действительности создать сертификат. Я использую makecert
, который доступен в .Net SDK, вот пакетный файл, который я использую для создания собственных сертификатов SSL для локальной разработки .Net и IIS;
@ECHO OFF
REM
REM This script will create a certificate to enable HTTPS for the localhost in IIS
REM Complete the following steps to install the certificate
REM
REM 1. Run this file to create the certificate
REM 2. Open MMC.exe
REM 3. Click File > Add/Remove Snap In > Add and select 'Certificates'
REM 4. Select 'Computer Account'
REM 5. Select 'Local Computer' and click 'Finish', 'Close', 'OK'
REM 6. Expand Certificates > Personal > Certificates, the new certificate should be listed
REM 7. In IIS open the Properties of the Default Web Site
REM 8. Select 'Directory Security' tab and click 'Server Certificate'
REM 9. The Certificate Wizard will open, choose 'Assign Existing Certificate' [may need to cancel a pending certificate request]
REM 10. Select new certificate from list and accept change
REM 11. Ensure that the site is using the default port for SSL 443
REM
C:
CD \
CALL "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\sdkvars.bat"
ECHO Creating Certificate
makecert -r -pe -n "CN=localhost" -b 01/01/2000 -e 01/01/2036 -eku 1.3.6.1.5.5.7.3.1 -ss my -sr localMachine -sky exchange -sp "Microsoft RSA SChannel Cryptographic Provider" -sy 12
PAUSE
Измените "CN=localhost"
, если вы используете другой заголовок хоста для доступа к сайту, вам может понадобиться изменить путь в выражении CALL
в зависимости от используемой версии Visual Studio.