log.Fatal("failed to fill rehydrated result cert: ",err)
}
if!bytes.Equal(derBytes,rehydratedDerBytes){
if!bytes.Equal(derBytes,rehydratedDerBytes){
log.Fatal("ERROR: The cert did not rehydrate to an identical form. This is a bug; do not use the generated certificate.")
}
log.Print("Your Namecoin cert is: {\"d8\":",dehydrated,"}")
log.Print("SUCCESS: The cert rehydrated to an identical form. Place the generated files in your HTTPS server, and place the above JSON in the \"tls\" field for your Namecoin name.");
log.Print("SUCCESS: The cert rehydrated to an identical form. Place the generated files in your HTTPS server, and place the above JSON in the \"tls\" field for your Namecoin name.")