From here you can safely purchase a range of government-issued certificates for Scotland, which can be used for any official purpose. Replacement certificates are often required for legal purposes, or required to be presented when moving abroad. They can also be used to track your family history.
Please keep in mind these are replacements for certificates issued in Scotland only. They won't work for any of the other British Isles, or if your certificate was issued abroad.