[SOLVED] Hotspot with SSL: Private Key and Certificate fail
Posted: Sun Nov 12, 2006 7:53 pm
After reading a LOT of topic, wiki and Google, I haven't found a suitable way to generate ssl keys for RouterOS (2.9.34). Better: I found the way, but RouterOS doesn't want it!
Winbox wouldn't to import my key/certificate. I try to follow the howto for certificate import, but no success...when I try to give a "decrypt" command, he ask me the passphrase, but no keys decrypted follows...I'm (quite) desperate!
This is what I do:
- generating the private key and certificate in this way:
- two file are generated: hotspot.mynetwork.net (certificate) and hotspot.mynetwork.net.key (private key)
- upload the two file via FTP to an RB153 with RouterOS 2.9.34
- login via telnet to the RB153:
Someone has never set-up a hotspot with SSL autentication?
Thanks in advance
73 de IZ3HAD
Winbox wouldn't to import my key/certificate. I try to follow the howto for certificate import, but no success...when I try to give a "decrypt" command, he ask me the passphrase, but no keys decrypted follows...I'm (quite) desperate!
This is what I do:
- generating the private key and certificate in this way:
Code: Select all
SERVER=hotspot.mynetwork.net
PRIVATE_KEY=$SERVER.key
CERTIFICATE_FILE=$SERVER
VALID_DAYS=1095
openssl genrsa -des3 -out $PRIVATE_KEY 1024
openssl req -new -x509 -days $VALID_DAYS -key $PRIVATE_KEY -out $CERTIFICATE_FILE
- upload the two file via FTP to an RB153 with RouterOS 2.9.34
- login via telnet to the RB153:
Code: Select all
[admin@IZ3HAD] certificate> print
Flags: K - decrypted-private-key, Q - private-key, R - rsa, D - dsa
[admin@IZ3HAD] certificate> import
passphrase: *********
certificates-imported: 1
private-keys-imported: 0
files-imported: 1
decryption-failures: 0
keys-with-no-certificate: 1
[admin@IZ3HAD] certificate> print
Flags: K - decrypted-private-key, Q - private-key, R - rsa, D - dsa
0 name="cert1" subject=C=IT,ST=xxxxxx,O=xxxxxx
issuer=C=IT,ST=xxxxxx,O=xxxxxx serial-number="xxxxxx"
invalid-before=nov/12/2006 17:32:27 invalid-after=nov/11/2009 17:32:27 ca=yes
[admin@IZ3HAD] certificate> decrypt
passphrase: *********
keys-decrypted: 0
[admin@IZ3HAD] certificate> print
Flags: K - decrypted-private-key, Q - private-key, R - rsa, D - dsa
0 name="cert1" subject=C=IT,ST=xxxxxx,O=xxxxxx
issuer=C=IT,ST=xxxxxx,O=xxxxxx serial-number="xxxxxx"
invalid-before=nov/12/2006 17:32:27 invalid-after=nov/11/2009 17:32:27 ca=yes
Thanks in advance
73 de IZ3HAD