I'm getting quite frustrated trying to setup https access to our bitbucket server.
Following bitbuckets documentation isn't that helpful.
So far I have the executed the following commands
Firtly, I created a certificate signing request and sent that to my certificate provider and they have sent me a certificate.
openssl req -new -newkey rsa:2048 -nodes -keyout domain.key -out domain.csr
At this point I have 3 files, domain.key, domain.csr and a ssl certificate provided to mey, domain.cer
I then tried to create a keystore with the following command
keytool -genkey -alias tomcat -keyalg RSA -keystore ssl-keystore
I was prompted for a keystore password and I provided one.
I then tried to import the certificate provided to me.
keytool -import -alias tomcat -file domain.cer -keystore ssl-keystore
and got the following error.
keytool error: java.lang.Exception: Public keys in reply and keystore don't match
I'm a complete ssl newbie and am relying on following website instructions and am at a loss now what to do.