Unfortunatelly i couldn't resolve the https issue but for http here is my script:
USE[redb]
go
-- CLEANUP
DROP FUNCTION [dbo].[ufnCalcBusinessDays]
DROP ASSEMBLY [REDB.XmlSerializers]
DROP ASSEMBLY [REDB]
-- Create Assembly
ALTER DATABASE REDB SET TRUSTWORTHY ON
CREATE ASSEMBLY REDB...