$ md5sum imagekey.cer 99def4b80b75ed65aad52a5fc3ed1131 imagekey.cer $ sha1sum imagekey.cer 06c3c15b88de548b18814d4389d18a20f65a5845 imagekey.cer $ sha256sum imagekey.cer 02b107f0679bc5d5aa0ab49be52043bb31f2a010a980573c53dc3fc815e1d7f3 imagekey.cer
$ md5sum imagekey.cer ccfcd027e20c9cc38b5d8dac17c7199f imagekey.cer $ sha1sum imagekey.cer 2af0d97abbb58821650445cd517050fd0cfa2684 imagekey.cer $ sha256sum imagekey.cer bab2f722cbba13a73d9af4c17af9c34d62ac71b4c9e8bbb9bac5df1fdceb0261 imagekey.cer
SSG550-> save config to tftp 172.22.152.251 ssg550_config_backup Read the current config. Save configurations (3064 bytes) to ssg550_config_backup on TFTP server 172.22.152.251. !!!!!!!!!!!!!! tftp transferred records = 6 tftp success! TFTP Succeeded
SSG550-> exec pki test skey (snip) KEY1 N/A len =432 308201ac02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0 KEY2 N/A len =432 308201ac02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0 KEY3 N/A len =432 308201ac02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0
SSG550-> exec pki test skey (snip) KEY1 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=dead1234 KEY2 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=dead1234 KEY3 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=dead1234
SSG550-> save image-key tftp 172.22.152.251 new/imagekey.cer Load file from TFTP 172.22.152.251 (file: new/imagekey.cer). !!!!! tftp received octets = 863 tftp success! Done TFTP Succeeded
SSG550-> exec pki test skey (snip) KEY1 N/A len =433 308201ad02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0 KEY2 N/A len =433 308201ad02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0 KEY3 N/A len =433 308201ad02010002818100fd7f53811d75122952df4a9c2eece4e7f611b7523cef4400c31e3f80b651 magic1 = f7e9294b magic2=0
SSG550-> delete crypto auth-key SSG550-> exec pki test skey (snip) KEY1 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=0 KEY2 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=0 KEY3 N/A len =0 0000000000000000000000000000000000000000000000000000000000000000000000000000000000 magic1 = f7e9294b magic2=0
Netscreen 5200/5400 : Load5000v104.d MD5 Sha1 ISG 2000 : Load2000v117.d MD5 Sha1 ISG 1000 : Load1000v103.d MD5 Sha1
ns5200-> save software from tftp 172.22.152.251 new/ns5000.6.3.0-M2A.r17.0 to flash Load software from TFTP 172.22.152.251 (file: new/ns5000.6.3.0-M2A.r17.0). !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (snip) tftp received octets = 13541072 tftp success! TFTP Succeeded Save to flash. It may take a few minutes ...platform = 15, cpu = 16, version = 18 update new flash image (04243150,13541072) platform = 15, cpu = 16, version = 18 offset = 20, address = 4000000, size = 13540994 date = 71c0efb8, sw_version = 71c0efbc, cksum = c491f61c Image authenticated! Program flash (13541072 bytes) ... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++done Done
ns5200-> reset System reset, are you sure? y/[n] y In reset ... Juniper Networks NS-5000-II BootROM Version 1.0.0 (Checksum: FE499CCD) Copyright (c) 1998-2004 Juniper Networks, Inc. Total physical memory: 2048MB Test - Pass Initialization................ Done Hit key 'X' and 'A' sequentially to update OS Loader.... Loading OS Loader from on-board flash memory... ++++ Done! ********Invalid DSA signature <- The installed boot loader (OS Loader) cannot be authenticated using the new image key ********Bogus image - not authenticated OS Loader File Name [new/ns5000.6.3.0-M2A.r17.0]: new/Load5000v104.d <- Boot loader file signed with the new image key Self IP Address [172.19.50.252]: 172.22.152.49 TFTP IP Address [172.19.50.129]: 172.22.152.251 Save loader config (56 bytes)... Done Loading file "new/Load5000v104.d"... (snip) Loaded successfully! (size = 447,576 bytes) Image authenticated! <- Boot loader is authenticated using the new image key Program OS Loader to on-board flash memory... ++++ Done! Start loading... .................... Done. Juniper Networks NS-5000-II OS Loader Version 1.0.4 Initialize FBTL 0.. Done Hit any key to load new firmware Hit any key to load new firmware Hit any key to load new firmware Hit any key to load new firmware Loading default system image from on-board flash disk... ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Done! (size = 13,631,488 bytes) Image authenticated! <- ScreenOS firmware is authenticated using the new image key Start loading... (snip) Done. Configuring Imperial FPGA... Done Juniper Networks, Inc NS-5000 System Software Copyright, 1997-2008 Version 6.3.0r17.0 (snip)
ns5200-> get system Product Name: NetScreen-5200-II Serial Number: 0040012001000011, Control Number: 00000000 Hardware Version: 3010(0)-(04), FPGA checksum: 00000000, VLAN1 IP (0.0.0.0) Software Version: 6.3.0r17.0, Type: Firewall+VPN BOOT ROM Version: 1.0.0 OS Loader Version: 1.0.4 (snip)
SSG550-> save software from tftp 172.22.152.251 new/ssg500.6.3.0r17.0 to flash Load software from TFTP 172.22.152.251 (file: new/ssg500.6.3.0r17.0). !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (snip) tftp received octets = 11627247 tftp success! TFTP Succeeded Save to flash. It may take a few minutes ...platform = 23, cpu = 11, version = 2 update new flash image (02572fd0,11627247) platform = 23, cpu = 11, version = 2 offset = 20, address = 0, size = 11627169 date = 9422, sw_version = 808031, cksum = 954806c3 Program flash (11627247 bytes) ... (snip)
SSG550-> reset System reset, are you sure? y/[n] y In reset ... (snip) ScreenOS Saipanloader V1.0.7 Built Mar 19 2009/15:54:12 watchdog_probe, 1132 bus/dev/fn = 0/248 ich = 2640 boot_drive = 80 start1 = 0768, start2 = 3840 Hit 'X' and 'A' to upgrade bootloadermounting FAT16 partition file size = 112 size = 112, sizeof(nvram_rec) = 112 Hit any key to load new firmware Hit any key to load new firmware Hit any key to load new firmware Hit any key to load new firmware/$nsboot$.bin file size = 11627247 hdr->magic_number = 81ba16ee, hdr->platform_type = 1700, hdr->cpu_type = 11 Image authenticated! (snip)
SSG550-> save software from tftp 172.22.152.251 new/ssg500.6.3.0r17.0 to flash Load software from TFTP 172.22.152.251 (file: new/ssg500.6.3.0r17.0). !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (snip) tftp received octets = 11627247 tftp success! TFTP Succeeded Save to flash. It may take a few minutes ...platform = 23, cpu = 11, version = 2 update new flash image (02572fd0,11627247) platform = 23, cpu = 11, version = 2 offset = 20, address = 0, size = 11627169 date = 9422, sw_version = 808031, cksum = 954806c3 ********Invalid image!!! ********Bogus image - not authenticated!!! (snip)
SSG550-> reset System reset, are you sure? y/[n] y In reset ... (snip) ScreenOS Saipanloader V1.0.7 Built Mar 19 2009/15:54:12 watchdog_probe, 1132 bus/dev/fn = 0/248 ich = 2640 boot_drive = 80 start1 = 0768, start2 = 3840 Hit 'X' and 'A' to upgrade bootloader <- Hold ‘Shift key’ and hit ‘X’ and ‘A’ in sequence Loader File Name:new/Loadssg500v107.d <- Bootloader filename signed with the new image key Self IP Address :172.22.152.35 <- TFTP client IP address TFTP IP Address :172.22.152.251 <- TFTP server IP address IP MASK :255.255.255.0 Gateway IP Address :172.22.152.1 Saipan motherboard proto 3 or later detected Probing...[Ethernet0/0 and Ethernet0/1] Initiating hardware and waiting for link up ... Initiating hardware and waiting for link up ... self_ip = 172.22.152.35, tftp_server_ip = 172.22.152.251 ip = 172.22.152.35 mask = 255.255.255.0 gw = 172.22.152.1 svr = 172.22.152.251 network_ready = 1 new/Loadssg500v107.d 121078 bytes downloaded from tftp server old img size = 121032, new img size = 121032, load = 121078, sig = 46 S Image authenticated! <- Bootloader is authenticated using the new image key mounting FAT12 partition file /boot2 size was 121079, new size is 121078 getting sector information boot1 size = 512 boot2 size = 512 boot1_sector = 807, boot2_sector = 1051 offset = 512 [1052][1053][1054][1055][1056][1057][1058][1059][1060][1061][1062][1063][1064][1065][1066][1067][1068][1069][1070][1071][1072][1073][1074][1075][1076][1077][1078][1079][1080][1081][1082][1083][1084][1085][1086][1087][1088][1089][1090][1091][1092][1093][1094][1095][1096][1097][1098][1099][1100][1101][1102][1103][1104][1105][1106][1107][1108][1109][1110][1111][1112][1113][1114][1115][1116][1117][1118][1119][1120][1121][1122][1123][1124][1125][1126][1127][1128][1129][1130][1131][1132][1133][1134][1135][1136][1137][1138][1139][1140][1141][1142][1143][1144][1145][1146][1147][1148][1149][1150][1151][1152][1153][1154][1155][1156][1157][1158][1159][1160][1161][1162][1163][1164][1165][1166][1167][1168][1169][1170][1171][1172][1173][1174][1175][1176][1177][1178][1179][1180][1181][1182][1183][1184][1185][1186][1187][1188][1189][1190][1191][1192][1193][1194][1195][1196][1197][1198][1199][1200][1201][1202][1203][1204][1205][1206][1207][1208][1209][1210][1211][1212][1213][1214][1215][1216][1217][1218][1219][1220][1221][1222][1223][1224][1225][1226][1227][1228][1229][1230][1231][1232][1233][1234][1235][1236][1237][1238][1239][1240][1241][1242][1243][1244][1245][1246][1247][1248][1249][1250][1251][1252][1253][1254][1255][1256][1257][1258][1259][1260][1261][1262][1263][1264][1265][1266][1267][1268][1269][1270][1271][1272][1273][1274][1275][1276][1277][1278][1279][1280][1281][1282][1283][1284][1285][1286][1287][1288][1289][1290] write boot2's start sector back at sector 1051 write mbr back at sector 0 mounting FAT16 partition file size = 112 size = 112, sizeof(nvram_rec) = 112 system rebooting... <- After successful bootloader installation, the device will automatically try to reboot (snip) ********Invalid DSA signature <- But if the previously installed ScreenOS firmware is signed with the old image key, the new image key cannot authenticate the ScreenOS firmware, then the device prompt to you install a ScreenOS firmware signed with the new image key ********Bogus image - not authenticated mounting FAT16 partition file size = 112 Serial Number []: READ ONLYc) = 112 BOM Version Number []: READ ONLY Self MAC Address [0000-0000-0000]: READ ONLYip = 1.1.1.1 svr = 1.1.1.2 self_ip_buf = 1.1.1.1, tftp_ip_buf = 1.1.1.2 Firmware File Name [old/ssg500.6.3.0r17.0]: new/ssg500.6.3.0r17.0 <- Type the ScreenOS firmware filename signed with the new image key Self IP Address [1.1.1.1]: 172.22.152.35 <- TFTP client IP address TFTP IP Address [1.1.1.2]: 172.22.152.251 <- TFTP server IP address IP MASK [255.255.255.0]: Gateway IP Address [172.22.152.251]: Save loader config (112 bytes)... Done Saipan motherboard proto 3 or later detected Probing...[Ethernet0/0 and Ethernet0/1] Initiating hardware and waiting for link up ... self_ip = 172.22.152.35, tftp_server_ip = 172.22.152.251 ip = 172.22.152.35 mask = 255.255.255.0 gw = 172.22.152.251 svr = 172.22.152.251 network_ready = 1 new/ssg500.6.3.0r17.0 offset = 0, maxposition = 11627247 11627247 bytes downloaded from tftp server hdr->magic_number = 81ba16ee, hdr->platform_type = 1700, hdr->cpu_type = 11 Image authenticated! ← ScreenOS is authenticated Save to on-board flash disk? (y/[n]/m) No <- You should press ‘n’ key Run downloaded system image? ([y]/n) Yes <- You should press ‘y’ key (snip) System change state to Active(1) login: