Public keys and Keystore don't match

Public keys and Keystore don't match



Following this link , based on the accepted answer, the reason behind it is because the SSL certificate was generated for a completely different key pair.



But I don't think I generated it with a different key pair.



this is how I did it.



generate keystore:


keytool -keysize 2048 -genkey -alias tomcat -keyalg RSA -keystore pbsks.keystore



generate CSR:


keytool -certreq -keyalg RSA -alias tomcat -file csr.csr -keystore pbsks.keystore



use the generated csr to request certificate, then I received the file.



import the root ca, intermed and issued cert.


keytool -import -alias root -keystore pbsks.keystore -trustcacerts -file root.crt

keytool -import -alias intermed -keystore pbsks.keystore -trustcacerts -file intermed.crt

keytool -import -alias tomcat -keystore pbsks.keystore -trustcacerts -file issuedcert.crt.pem



Why is this happening?




1 Answer
1



You are generating the key and the csr file from pbsks.keystore, but you are importing the generated certs to tomcat.keystore.





Actually, it should be like that really.
– AyukNayr
Aug 30 at 5:01





Found the problem, I really thought pem file is the issued cert but I was wrong. Pem file is the intermediate certificate.
– AyukNayr
Aug 30 at 5:02





Glad to hear you solved.
– Elvermg
Aug 30 at 14:39





Yeah, But I ran into another problem lol. It says connection is not secured but I already installed all certs and it was okay. I was thinking maybe because my domain name and Common name in my CSR did not match?
– AyukNayr
Aug 31 at 2:19





This post can help you with that: security.stackexchange.com/questions/175786/…
– Elvermg
Aug 31 at 12:25



Required, but never shown



Required, but never shown






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

ャフサォクコ ケウ,コ,ワ メ,ロスョノ゙,クネ,フムカヤヲニ,エコ゚ツ ウイオン゙ケワサネォキモュキォウイノンコチ゚メヌナイゥフュ,カヒウネェ ネ,ホノケ,ムュキ ッボーミュハ,チ ツス ィ メウイマヤ,゙ウチ ヅ ロ,ォジヌェ ャヌット ェ,マャ,チナエヒネソキツテ トホヲヲミーァ

Node.js puppeteer - Use values from array in a loop to cycle through pages