Windows Certificate and Teamcity server - HTTPS
Hello everyone,
Recently, I tried to setup the TeamCity server to use certificates that were issued by Windows Certificate for HTTPS.
But I cannot get to work. Has anyone managed to get a certificate issued by the Windows Certificate Authority to work on the Team City server?
If yes, can you please give me instructions?
Thanks.
Please sign in to leave a comment.
Can you share the specific error or where you are blocking? You can refer https://www.jetbrains.com/help/teamcity/using-https-to-access-teamcity-server.html#Configuring+JVM to get more information about how to use HTTPS to access TeamCity server.
Hi,
When I upload cert files that are in PKCS12 format (.pem) and PKCS8 without a password through the web console, I get the error “Invalid certificate.”.
The certificate is valid, I already tested it by installing a temporary IIS server.
Thanks.
Hi Damir,
I'm unsure how you've been creating the .pem file, so please follow the steps below:
1. Download and install OpenSSL: https://slproweb.com/products/Win32OpenSSL.html
2. Generate a private key:
Run the following command to generate an RSA private key:
openssl genpkey -algorithm RSA -out teamcity-private-key.pem3. Create a self-signed certificate:
Execute this command to generate a self-signed certificate, valid for 365 days:
openssl req -new -key teamcity-private-key.pem -x509 -days 365 -out teamcity-certificate.pem4. Convert the certificate and key to PKCS#12 format:
Combine the private key and certificate into a PKCS#12 file by running:
openssl pkcs12 -export -out teamcity-certificate.pfx -inkey teamcity-private-key.pem -in teamcity-certificate.pemYou'll be prompted to set a password for the PKCS#12 file.
Once these steps are completed, you'll have the private key, certificate file